rustl/lib.rs
1
2pub mod collections;
3
4
5pub use crate::collections::singly_linked_list; // re-export here
6
7// #[cfg(test)]
8// mod tests {
9// use super::collections::singly_linked_list::LinkedList;
10
11// #[test]
12// fn test_list_size() {
13
14// let mut list = LinkedList::new(0);
15// for v in 1..=9 {
16// list.insert(v)
17// }
18
19// assert_eq!(list.size(), 10)
20// }
21// }