diff options
| author | Daniel Bovensiepen <[email protected]> | 2013-02-28 15:20:46 +0000 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2013-02-28 15:20:46 +0000 |
| commit | 81f96cb9af239d2bf3ff97bcc5f511dad1d51985 (patch) | |
| tree | d1a9a2085708347ab558bcd1dba76e20505d91ef /test/assert.rb | |
| parent | 12af04011fcaa80c6aa70da0586e39046613b3cf (diff) | |
| download | mruby-81f96cb9af239d2bf3ff97bcc5f511dad1d51985.tar.gz mruby-81f96cb9af239d2bf3ff97bcc5f511dad1d51985.zip | |
Move Math::TOLERANCE to mruby-math
Diffstat (limited to 'test/assert.rb')
| -rw-r--r-- | test/assert.rb | 3 |
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? |
