mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix Range#max test (TypeError is raised) on 32-bit mode
This commit is contained in:
@@ -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 4294967295, (0...2**32).max
|
||||
assert_equal 1073741823, (0...2**30).max
|
||||
|
||||
# returns nil when the endpoint is less than the start point
|
||||
assert_equal nil, (100..10).max
|
||||
|
||||
Reference in New Issue
Block a user