diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2021-05-29 14:08:24 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2021-05-29 14:08:24 -0700 |
| commit | fd65ef2a5aa8629676d1edb6410e4d4cf60b8045 (patch) | |
| tree | 19f391fd5348d8e23015899a23cd515504f99c96 /test/ruby | |
| parent | 9bb76201dd70632f26b06d9b6ef3ef18e32b358c (diff) | |
Attempt to fix floating point test failure
The previous behavior depending on exact float values, it seemed
to work OK on amd64 and i386, but other CI platforms are
experiencing non-deterministic test failures with it. Relax test
slightly to hopefully pass on such platforms.
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_float.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index ca616456f1..4be2cfeeda 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -898,7 +898,7 @@ class TestFloat < Test::Unit::TestCase a = rand b = a+rand*1000 s = (b - a) / 10 - b = a + s*10 + b = a + s*9.999999 seq = (a...b).step(s) assert_equal(10, seq.to_a.length, seq.inspect) end |
