Sha256: 4f11a7200fb07e6e8a17361b70eac6b08be65e34a0933d1da486a82b703fe901

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/numeric/ceil_multiple.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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-0.9.0 test/lib/nano/numeric/test_ceil_multiple.rb