Sha256: 8c265c5aeaa5dce618096b4ab84c40677849190a32473ea714257892f20f2e9b
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/integer/multiple.rb # # Extracted Tue Jun 20 15:12:26 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/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.4.2 | test/lib/facets/core/integer/test_multiple.rb |