Sha256: b1f40f1c6ee0f2168eff75dd4d58bc7f7a4d619d0b6e6ed58dc9ed5743ec3fee
Contents?: true
Size: 301 Bytes
Versions: 36
Compression:
Stored size: 301 Bytes
Contents
describe Integer, "#factorion?" do it "returns true for factorions" do [1, 2, 145, 40585].each do |number| number.should be_factorion end end it "returns false for non-factorions" do [3, 146, 4828291001].each do |number| number.should_not be_factorion end end end
Version data entries
36 entries across 36 versions & 1 rubygems