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

Version Path
numb-0.186.0 spec/numb/factorion_spec.rb
numb-0.185.0 spec/numb/factorion_spec.rb
numb-0.184.0 spec/numb/factorion_spec.rb
numb-0.181.0 spec/numb/factorion_spec.rb
numb-0.170.0 spec/numb/factorion_spec.rb
numb-0.152.0 spec/numb/factorion_spec.rb
numb-0.138.0 spec/numb/factorion_spec.rb
numb-0.125.0 spec/numb/factorion_spec.rb
numb-0.114.0 spec/numb/factorion_spec.rb
numb-0.111.0 spec/numb/factorion_spec.rb
numb-0.109.0 spec/numb/factorion_spec.rb
numb-0.99.0 spec/numb/factorion_spec.rb
numb-0.96.0 spec/numb/factorion_spec.rb
numb-0.89.0 spec/numb/factorion_spec.rb
numb-0.84.0 spec/factorion_spec.rb
numb-0.77.0 spec/factorion_spec.rb
numb-0.72.1 spec/factorion_spec.rb
numb-0.72.0 spec/factorion_spec.rb
numb-0.68.0 spec/factorion_spec.rb
numb-0.63.0 spec/factorion_spec.rb