Sha256: 19abf64e0f8593c1d0ed1b4047cf9ffc094d0137941568f093a864d29e4874e7

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/numeric/ceil_multiple.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/numeric/ceil_multiple.rb'


  require 'test/unit'

  class TCNumeric < Test::Unit::TestCase

    def test_ceil_multiple
      assert_equal( 12.3, 12.3.ceil_multiple(0.1) )
      assert_equal( 12.4, 12.31.ceil_multiple(0.1) )
      assert_equal( 13, 12.3.ceil_multiple(1) )
      assert_equal( 13, 12.31.ceil_multiple(1) )
      assert_equal( 20, 12.3.ceil_multiple(10) )
      assert_equal( 20, 12.31.ceil_multiple(10) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/numeric/test_ceil_multiple.rb