diff options
Diffstat (limited to 'tests/heapsize.rs')
-rw-r--r-- | tests/heapsize.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/heapsize.rs b/tests/heapsize.rs deleted file mode 100644 index 583c30e..0000000 --- a/tests/heapsize.rs +++ /dev/null @@ -1,23 +0,0 @@ -#![cfg(feature = "heapsize_impl")] - -extern crate heapsize; -extern crate linked_hash_map; - -use linked_hash_map::LinkedHashMap; -use heapsize::HeapSizeOf; - -#[test] -fn empty() { - assert_eq!(LinkedHashMap::<String, String>::new().heap_size_of_children(), 0); -} - -#[test] -fn nonempty() { - let mut map = LinkedHashMap::new(); - map.insert("hello".to_string(), "world".to_string()); - map.insert("hola".to_string(), "mundo".to_string()); - map.insert("bonjour".to_string(), "monde".to_string()); - map.remove("hello"); - - assert!(map.heap_size_of_children() != 0); -} |