diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-28 09:38:01 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-28 09:38:01 -0800 |
| commit | 028ac46df7c6569f361a685a000ebc425be16c22 (patch) | |
| tree | 9c803a9be5f987d4e85e11f5285e03268ab1b0f6 /test | |
| parent | b4a6e55ff4fc79a58ecba0ce41f14a5b1e253271 (diff) | |
| parent | 81f96cb9af239d2bf3ff97bcc5f511dad1d51985 (diff) | |
| download | mruby-028ac46df7c6569f361a685a000ebc425be16c22.tar.gz mruby-028ac46df7c6569f361a685a000ebc425be16c22.zip | |
Merge pull request #914 from bovi/math_tol
Move Math::TOLERANCE to mruby-math
Diffstat (limited to 'test')
| -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? |
