add core/float/zero spec

This commit is contained in:
Laurent Sansonetti
2014-04-20 23:20:46 +02:00
parent 22353535d0
commit e600f20111

View File

@@ -0,0 +1,7 @@
describe "Float#zero?" do
it "returns true if self is 0.0" do
0.0.zero?.should == true
1.0.zero?.should == false
-1.0.zero?.should == false
end
end