Sha256: 09173b0fd0fcf44f56bf531e21ffa9324de37f1c93da12fddc731b2859d59b62

Contents?: true

Size: 256 Bytes

Versions: 11

Compression:

Stored size: 256 Bytes

Contents

require 'facets/integer/odd'
require 'test/unit'

class TC_Integer < Test::Unit::TestCase

  def test_odd?
    (-101..101).step(2) do |n|
      assert(n.odd? == true)
    end
    (-100..100).step(2) do |n|
      assert(n.odd? == false)
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/integer/test_odd.rb
facets-2.8.3 test/core/integer/test_odd.rb
facets-2.8.2 test/core/integer/test_odd.rb
facets-2.8.1 test/core/integer/test_odd.rb
facets-2.8.0 test/core/integer/test_odd.rb
facets-2.7.0 test/core/integer/test_odd.rb
facets-2.6.0 test/core/integer/test_odd.rb
facets-2.5.1 test/core/integer/test_odd.rb
facets-2.5.0 test/core/integer/test_odd.rb
facets-2.4.5 test/core/integer/test_odd.rb
facets-2.5.2 test/core/integer/test_odd.rb