Sha256: 3b6a3af2e6f3b8cc1445ab8f9b695c189bc9d0e435d235360b5f2df7cfe16799

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/numeric/ceil_multiple.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/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.0.3 packages/core/test/lib/facet/numeric/test_ceil_multiple.rb