Sha256: c75d143a789578f436cc2cd21c224f63efa7900ec323c9cd730d06e8e65eaf61

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

require 'queencheck/integer'

describe Integer do
  it ".arbitrary?" do
    Integer.arbitrary?.should be_true
  end

  it ".arbitrary" do
    100.times do 
      Integer.arbitrary(0).should be_zero
    end

    100.times do |n|
      n = n / 100.0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
queencheck-0.1.2 spec/queencheck/integer_spec.rb
queencheck-0.1.1 spec/queencheck/integer_spec.rb
queencheck-0.1.0 spec/queencheck/integer_spec.rb
queencheck-0.0.2 spec/queencheck/integer_spec.rb
queencheck-0.0.1 spec/queencheck/integer_spec.rb