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