fedora-migrator /vendor/gems/facets-2.4.5/test/core/integer/test_odd.rb

Language Ruby Lines 17
MD5 Hash 6e99fe60369e3964ce24a13488a30f0b Estimated Cost $260 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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
Back to Top