spec/spec.google_hash.rb in google_hash-0.8.4 vs spec/spec.google_hash.rb in google_hash-0.8.5

- old
+ new

@@ -213,26 +213,30 @@ a[1.0] = 1 a[1.0].should == 1 end end - it "should do bignum to doubles et al" do - a = GoogleHashDenseDoubleToDouble.new + def test_big_numbers a a[10000000000000000000] = 1 a[10000000000000000000].should == 1 a[1] = 10000000000000000000 a[1].should == 10000000000000000000 a[4] = 3 a[4].should == 3 a[10000000000000000000] = 10000000000000000000 a[10000000000000000000].should == 10000000000000000000 + end + + it "should do bignum to doubles et al" do + test_big_numbers( GoogleHashDenseDoubleToDouble.new) end - it "should allow for storing true bignums" do - pending - 'TODO: same as above plus the following:' - a = GoogleHashDenseBignumToRuby.new - a[10000000000000000000] = 'abc' + it "should allow for storing true BigNum" do + pending 'caring about bignums at all and even having the classes in there' + test_big_numbers(GoogleHashDenseBigNumToRuby.new) + # and test the to ruby aspect + a[10000000000000000000] = 'abc' + a[10000000000000000000].should == 'abc' end it "should have an Enumerator return for values, keys [?] instead of an array?" it "should have a block access for just values, or just keys" do