Sha256: becbcd469c410fc17ff088225d4a5a938337cad99a2732b03b5a52ec9375c3a1

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/numeric/approx.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

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


  require 'test/unit'

  class TCFloat < Test::Unit::TestCase

    def test_approx?
      f = 10.006
      assert( f.approx?(10.01) )
      assert( f.approx?(10, 0.1) )
      assert( 100.4.approx?(100.6, 1) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/numeric/test_approx.rb