summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-09-05 19:51:32 +0900
committerKOBAYASHI Shuji <[email protected]>2019-09-05 19:51:32 +0900
commit6cfcff6f10c2f3274b36c0025fb807468e79eef2 (patch)
tree0b3cbac8b79d816cc760adac3b24d72dc3c5df7e
parent2df419e324273aa7c7729bf2ad228e13b0944dfd (diff)
downloadmruby-6cfcff6f10c2f3274b36c0025fb807468e79eef2.tar.gz
mruby-6cfcff6f10c2f3274b36c0025fb807468e79eef2.zip
Fix `Range#max` test (`TypeError` is raised) on 32-bit mode with word boxing
-rw-r--r--mrbgems/mruby-range-ext/test/range.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-range-ext/test/range.rb b/mrbgems/mruby-range-ext/test/range.rb
index 8179cef53..865e46d02 100644
--- a/mrbgems/mruby-range-ext/test/range.rb
+++ b/mrbgems/mruby-range-ext/test/range.rb
@@ -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