Sha256: b168bea13ccedbe8834f7f54505ae1b48bfdaabfe5762ad87b42ef3181665ee9
Contents?: true
Size: 411 Bytes
Versions: 26
Compression:
Stored size: 411 Bytes
Contents
describe "Numeric#even?" do it "is true for zero" do 0.even?.should be_true end it "is true for even positive Fixnums" do 4.even?.should be_true end it "is true for even negative Fixnums" do (-4).even?.should be_true end it "is false for odd positive Fixnums" do 5.even?.should be_false end it "is false for odd negative Fixnums" do (-5).even?.should be_false end end
Version data entries
26 entries across 26 versions & 1 rubygems