Sha256: 50b0a385e1f51afde41ce6356e4b5d6f7538600c8db8ccd1efa1f40bd9fc8946
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "helper" require "float/equalindelta.rb" #require "test/unit" #require "pkg/klass.rb" class TC_Float < Test::Unit::TestCase def test_equal_in_delta? assert_equal(true , (1.0).equal_in_delta?(1.0, 0.1)) assert_equal(false, (1.0).equal_in_delta?(1.2, 0.1)) assert_equal(true , (1.0).equal_in_delta?(1.2, 0.3)) assert_equal(false, (1.2).equal_in_delta?(1.0, 0.1)) assert_equal(true , (1.2).equal_in_delta?(1.0, 0.3)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
builtinextension-0.1.4 | test/float/test_equalindelta.rb |
builtinextension-0.1.3 | test/test_float_equalindelta.rb |