Sha256: 75816dee4c97d7ba6a59fe9ff66e28061f686ab46ba5c6eb545eba2e36aefa45
Contents?: true
Size: 214 Bytes
Versions: 20
Compression:
Stored size: 214 Bytes
Contents
describe Integer, "#nth_prime" do Prime.first(20).each_with_index do |prime, n| n = n.succ it "should return #{prime} as the #{n}#{n.ordinal} prime" do n.nth_prime.should == prime end end end
Version data entries
20 entries across 20 versions & 1 rubygems