Sha256: 4b72c047ae46984c8435c60528597b764afd34a45133ab5433128ad8b061bcee

Contents?: true

Size: 521 Bytes

Versions: 20

Compression:

Stored size: 521 Bytes

Contents

describe Integer, "#kynea?" do
  # A093069
  @seq = [7,23,79,287,1087,4223,16639,66047,263167,1050623,
          4198399,16785407,67125247,268468223,1073807359,
          4295098367,17180131327,68720001023,274878955519,
          1099513724927,4398050705407,17592194433023].to_seq

  @seq.each do |n|
    it "returns true for Kynea number #{n}" do
      n.should be_kynea
    end
  end

  @seq.invert.sample(3).each do |n|
    it "returns false for non-Kynea number #{n}" do
      n.should_not be_kynea
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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