From aac91267e3ea650649ee443b042fe04cd502da6c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 31 Jan 2013 17:22:55 -0500 Subject: [PATCH] clean up SmallIntMap tests a bit --- src/libstd/smallintmap.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index d13c6d26d5b9..381aa3b79635 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);