diff options
| author | Tomasz Dąbrowski <[email protected]> | 2016-11-24 12:48:41 +0100 |
|---|---|---|
| committer | Tomasz Dąbrowski <[email protected]> | 2016-11-24 12:48:41 +0100 |
| commit | a8b8abbd826b60b6313baef5635acd41e6d8f716 (patch) | |
| tree | 87ff532e414f2876e3e19bba838710cb3fc7660a /test/assert.rb | |
| parent | 0c924b92872a96b29f3fe8462ab57d33dfb7b9b6 (diff) | |
| download | mruby-a8b8abbd826b60b6313baef5635acd41e6d8f716.tar.gz mruby-a8b8abbd826b60b6313baef5635acd41e6d8f716.zip | |
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? |
