summaryrefslogtreecommitdiffhomepage
path: root/test/t/array.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-11-22 17:59:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-22 18:00:04 +0900
commitfb7776586e4230cdc00077dca6bc6399bc8783f2 (patch)
tree42ed72a9a1d4127bc82df8c1671849f2c2449095 /test/t/array.rb
parentbe73905c9c3ab8f684551506da219b170ee9c6dc (diff)
downloadmruby-fb7776586e4230cdc00077dca6bc6399bc8783f2.tar.gz
mruby-fb7776586e4230cdc00077dca6bc6399bc8783f2.zip
hash value may be overflown from Integer
mruby special.
Diffstat (limited to 'test/t/array.rb')
-rw-r--r--test/t/array.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index d887c117b..3c5211591 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -318,7 +318,8 @@ end
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