summaryrefslogtreecommitdiffhomepage
path: root/test/assert.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-02-28 09:38:01 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-02-28 09:38:01 -0800
commit028ac46df7c6569f361a685a000ebc425be16c22 (patch)
tree9c803a9be5f987d4e85e11f5285e03268ab1b0f6 /test/assert.rb
parentb4a6e55ff4fc79a58ecba0ce41f14a5b1e253271 (diff)
parent81f96cb9af239d2bf3ff97bcc5f511dad1d51985 (diff)
downloadmruby-028ac46df7c6569f361a685a000ebc425be16c22.tar.gz
mruby-028ac46df7c6569f361a685a000ebc425be16c22.zip
Merge pull request #914 from bovi/math_tol
Move Math::TOLERANCE to mruby-math
Diffstat (limited to 'test/assert.rb')
-rw-r--r--test/assert.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/assert.rb b/test/assert.rb
index 269c435a7..86e99db5c 100644
--- a/test/assert.rb
+++ b/test/assert.rb
@@ -151,9 +151,8 @@ end
##
# Performs fuzzy check for equality on methods returning floats
-# on the basis of the Math::TOLERANCE constant.
def check_float(a, b)
- tolerance = Math::TOLERANCE
+ tolerance = 1e-12
a = a.to_f
b = b.to_f
if a.finite? and b.finite?