clean up SmallIntMap tests a bit

This commit is contained in:
Daniel Micay
2013-01-31 17:22:55 -05:00
parent 1057eea7ac
commit aac91267e3

View File

@@ -174,7 +174,6 @@ mod tests {
use smallintmap::{mk, SmallIntMap}; use smallintmap::{mk, SmallIntMap};
use core::option::None; use core::option::None;
use core::option;
#[test] #[test]
fn test_len() { fn test_len() {
@@ -214,9 +213,9 @@ mod tests {
map.update_with_key(3, 2, addMoreToCount); map.update_with_key(3, 2, addMoreToCount);
// check the total counts // check the total counts
assert 10 == option::get(map.find(3)); assert map.find(3).get() == 10;
assert 3 == option::get(map.find(5)); assert map.find(5).get() == 3;
assert 1 == option::get(map.find(9)); assert map.find(9).get() == 1;
// sadly, no sevens were counted // sadly, no sevens were counted
assert None == map.find(7); assert None == map.find(7);