test/cache_test.rb in lru_redux-0.0.1 vs test/cache_test.rb in lru_redux-0.0.2

- old
+ new

@@ -45,6 +45,15 @@ @c[:b] = 2 @c[:c] = 3 @c[:a] = 99 assert_equal [[:a,99],[:c,3],[:b,2]], @c.to_a end + + def test_clear + @c[:a] = 1 + @c[:b] = 2 + @c[:c] = 3 + + @c.clear + assert_equal [], @c.to_a + end end