spec/spec.google_hash.rb in google_hash-0.6.0 vs spec/spec.google_hash.rb in google_hash-0.6.1
- old
+ new
@@ -246,9 +246,16 @@
@a[3] = 4
a.each_value {}
a.each_key {}
end
+ it "should have nice inspect" do
+ a = GoogleHashSparseIntToRuby.new
+ a[3] = 4
+ a[4] = 5
+ a.inspect.should == "GoogleHashSparseIntToRuby {3=>4,4=>5}"
+ end
+
it "should have sets, too, not just hashes"
it "should skip GC when native to native" do
end