Sha256: 91f2b6b94a074f6ccdf14cedf1be6676b7970ac725b031215ecb4c6afd03b073
Contents?: true
Size: 459 Bytes
Versions: 70
Compression:
Stored size: 459 Bytes
Contents
describe "Numeric#modulo" do it "returns the modulus obtained from dividing self by the given argument" do 13.modulo(4).should == 1 4.modulo(13).should == 4 13.modulo(4.0).should == 1 4.modulo(13.0).should == 4 end end describe "Numeric#%" do it "returns the modulus obtained from dividing self by the given argument" do (13 % 4).should == 1 (4 % 13).should == 4 (13 % 4.0).should == 1 (4 % 13.0).should == 4 end end
Version data entries
70 entries across 70 versions & 3 rubygems