diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-01-31 17:22:55 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-01-31 23:13:56 -0500 |
| commit | aac91267e3ea650649ee443b042fe04cd502da6c (patch) | |
| tree | 29b86b9981afeaeb14b517a25eafc07a970ef91b /src/libstd | |
| parent | 1057eea7ac124da94479b4903d5df29c6f6c0660 (diff) | |
clean up SmallIntMap tests a bit
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/smallintmap.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index d13c6d26d5b..381aa3b7963 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -174,7 +174,6 @@ mod tests { use smallintmap::{mk, SmallIntMap}; use core::option::None; - use core::option; #[test] fn test_len() { @@ -214,9 +213,9 @@ mod tests { map.update_with_key(3, 2, addMoreToCount); // check the total counts - assert 10 == option::get(map.find(3)); - assert 3 == option::get(map.find(5)); - assert 1 == option::get(map.find(9)); + assert map.find(3).get() == 10; + assert map.find(5).get() == 3; + assert map.find(9).get() == 1; // sadly, no sevens were counted assert None == map.find(7); |
