Sha256: 5025c6155ce09f9fdb8d6b74e88bdc883798e4ec642a84f849d4fd381969ab1b

Contents?: true

Size: 260 Bytes

Versions: 11

Compression:

Stored size: 260 Bytes

Contents

require 'facets/integer/even'
require 'test/unit'

class TC_Integer < Test::Unit::TestCase

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

end

Version data entries

11 entries across 11 versions & 1 rubygems

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