From 81f96cb9af239d2bf3ff97bcc5f511dad1d51985 Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Thu, 28 Feb 2013 15:20:46 +0000 Subject: Move Math::TOLERANCE to mruby-math --- test/assert.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/assert.rb') 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? -- cgit v1.2.3