use std::collections::HashMap;
use c3_linearization::C3;
#[test]
fn basic() {
let c3 = C3::default();
let mut input = HashMap::new();
input.insert('A', vec!['B', 'C']);
input.insert('B', vec![]);
input.insert('C', vec!['D']);
input.insert('D', vec![]);
let mut target = HashMap::new();
target.insert('A', vec!['A', 'B', 'C', 'D']);
target.insert('B', vec!['B']);
target.insert('C', vec!['C', 'D']);
target.insert('D', vec!['D']);
assert_eq!(target, c3.linearize(input).unwrap())
}
generated from oovm/RustTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
C3 Linearization in scala/ruby style
License
oovm/c3-linearization
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
C3 Linearization in scala/ruby style
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published