spec/numb/integer_p_spec.rb in numb-0.114.0 vs spec/numb/integer_p_spec.rb in numb-0.125.0

- old
+ new

@@ -16,6 +16,12 @@ [23.5, 4509.0000001, 2222981011.020].each do |n| it "should return false for float #{n}" do n.should_not be_integer end end + + it "ignores digits past the tenth" do + 3.00000000001.should be_integer + 123.0000000000032.should be_integer + 123.00000000032.should_not be_integer + end end