Sha256: 4759b4cdd850f29d1578dd860de4a9b448407265d588c18fc0d696b56ef91008

Contents?: true

Size: 435 Bytes

Versions: 20

Compression:

Stored size: 435 Bytes

Contents

describe Integer, "#core" do
  # A007913
  @seq = [1,2,3,1,5,6,7,2,1,10,11,3,13,14,15,1,17,2,19,5,
          21,22,23,6,1,26,3,7,29,30,31,2,33,34,35,1,37,38,
          39,10,41,42,43,11,5,46,47,3,1,2,51,13,53,6,55,14,
          57,58,59,15,61,62,7,1,65,66,67,17,69,70,71,2,73,
          74,3,19,77]

  @seq.each_with_index do |core, n|
    it "should return #{core} for #{n.succ}" do
      n.succ.core.should == core
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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