init version
This commit is contained in:
15
src/tests.rs
Normal file
15
src/tests.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let ll = Box::leak(Box::new(LinkedListWrapper::new()));
|
||||
|
||||
println!("{:#?}", ll.clone_into_vec());
|
||||
|
||||
ll.prepend("test");
|
||||
ll.prepend("another test");
|
||||
|
||||
println!("{:#?}", ll.clone_into_vec());
|
||||
|
||||
assert_eq!(4, 4);
|
||||
}
|
Reference in New Issue
Block a user