summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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?