Sha256: 441bac938fa5da218babaa7fb37b7790763a2cfecb80df67015f273d335c94d5

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

require 'mathn'

describe "Prime#next" do
  it "returns the element at the current position and moves forward" do
    p = Prime.new
    p.next.should == 2
    p.next.should == 3
    p.next.next.should == 6
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysl-mathn-1.0.0 spec/prime/next_spec.rb
rubysl-mathn-2.0.0 spec/prime/next_spec.rb