Sha256: a42b8f8ff80e6f4bb9b793f8c62e87de2551f0725035b699f40c2c39e0f9cc9c
Contents?: true
Size: 366 Bytes
Versions: 52
Compression:
Stored size: 366 Bytes
Contents
ruby_version_is "1.9" do describe "Rational#zero?" do it "returns true if the numerator is 0" do Rational(0,26).zero?.should be_true end it "returns true if the numerator is 0.0" do Rational(0.0,26).zero?.should be_true end it "returns false if the numerator isn't 0" do Rational(26).zero?.should be_false end end end
Version data entries
52 entries across 52 versions & 2 rubygems