Sha256: 901c2a551809d4ccc70fd20879882d6b6530f47e95efc1a2dbd4d1fdd8495ab2

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/numeric/approx.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

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.7.30 test/lib/facets/core/numeric/test_approx.rb