Skip to content
Permalink
Browse files
hash value may be overflown from Integer
mruby special.
  • Loading branch information
matz committed Nov 22, 2016
1 parent be73905 commit fb7776586e4230cdc00077dca6bc6399bc8783f2
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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

0 comments on commit fb77765

Please sign in to comment.