Unverified Commit c3b16c26 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4691 from...

Merge pull request #4691 from shuujii/fix-Range-max-test-TypeError-is-raised-on-32-bit-mode-with-word-boxing

Fix `Range#max` test (`TypeError` is raised) on 32-bit mode with word boxing
parents 968547d7 6cfcff6f
......@@ -39,7 +39,7 @@ assert('Range#max') do
# returns the maximum value in the range when called with no arguments
assert_equal 10, (1..10).max
assert_equal 9, (1...10).max
assert_equal 1073741823, (0...2**30).max
assert_equal 536870911, (0...2**29).max
# returns nil when the endpoint is less than the start point
assert_equal nil, (100..10).max
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment