diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-24 21:48:14 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-24 21:48:14 +0900 |
| commit | 86027890677259a411ceed30242cd0aea00afd64 (patch) | |
| tree | b378461009bfef8433af95f78ac8fc5e6ce4e0b3 /test/assert.rb | |
| parent | e289ba3effd728d4f9da73cd14db5a4538fa38d0 (diff) | |
| parent | 72ed7eebc30eaccf4175eaa7f62235bcb7a8901d (diff) | |
| download | mruby-86027890677259a411ceed30242cd0aea00afd64.tar.gz mruby-86027890677259a411ceed30242cd0aea00afd64.zip | |
Merge pull request #3277 from dabroz/feature-float-tolerance
Fixed float tolerance in tests when MRB_USE_FLOAT is set
Diffstat (limited to 'test/assert.rb')
| -rw-r--r-- | test/assert.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/assert.rb b/test/assert.rb index f565652b1..5617e1e38 100644 --- a/test/assert.rb +++ b/test/assert.rb @@ -232,7 +232,7 @@ end ## # Performs fuzzy check for equality on methods returning floats def check_float(a, b) - tolerance = 1e-12 + tolerance = Mrbtest::FLOAT_TOLERANCE a = a.to_f b = b.to_f if a.finite? and b.finite? |
