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