Sha256: a817a19fa8398dc14e4a23e46deba70bf487c7ca575c2ba363c5cabbdde67203
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/integer/multiple.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/integer/multiple.rb' require 'test/unit' class TCInteger < Test::Unit::TestCase def test_odd? assert( ! 0.odd? ) assert( 1.odd? ) assert( ! 2.odd? ) assert( 3.odd? ) end def test_even? assert( 0.even? ) assert( ! 1.even? ) assert( 2.even? ) assert( ! 3.even? ) end def test_multiple? assert( ! 1.multiple?(2) ) assert( 2.multiple?(2) ) assert( ! 5.multiple?(3) ) assert( 6.multiple?(3) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/integer/test_multiple.rb |