Sha256: 0c8df2b102dd6c3a8835c1859ffe7e0efc1afaff00ea773a1824009c30911b88
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/numeric/approx.rb # # Extracted Mon Jun 05 08:14:29 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.4.0 | test/lib/facets/core/numeric/test_approx.rb |