Sha256: 2e4193c29e2b275d12bedc9fa7b12c0d5189594f80430d2bbe5f85447b6c1090

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/integer/multiple.rb
#
# Extracted Tue Jun 06 09:30:19 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.1 test/lib/facets/core/integer/test_multiple.rb