summaryrefslogtreecommitdiff
path: root/spec/ruby/.mspec.constants
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-04-29 12:51:05 -0700
committerJeremy Evans <code@jeremyevans.net>2021-05-29 08:56:15 -0700
commitf516379853f36d143d820c55d5eeaa9fc410ef52 (patch)
treee5a9e14896dee5767d0d33834613bd56c590ce66 /spec/ruby/.mspec.constants
parente56ba6231f77dd0aa88a1ce737a342baafc884c7 (diff)
Fix Enumerator::ArithmeticSequence handling of float ranges
Depending on the float range, there could be an off-by-one error, where the last result that should be in the range was missed. Fix this by checking if the computed value for the expected value outside the range is still inside the range, and if so, increment the step size. Fixes [Bug #16612]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4434
Diffstat (limited to 'spec/ruby/.mspec.constants')
0 files changed, 0 insertions, 0 deletions