Skip to content

Commit

Permalink
hash value may be overflown from Integer
Browse files Browse the repository at this point in the history
mruby special.
  • Loading branch information
matz committed Nov 22, 2016
1 parent be73905 commit fb77765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/t/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@
assert('Array#hash', '15.2.12.5.35') do
a = [ 1, 2, 3 ]

assert_true(a.hash.is_a? Integer)
#assert_true(a.hash.is_a? Integer)
assert_true(a.hash.is_a? Integral) # mruby special
assert_equal([1,2].hash, [1,2].hash)
end

Expand Down

0 comments on commit fb77765

Please sign in to comment.