summaryrefslogtreecommitdiffhomepage
path: root/test/t/array.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-01-16 21:33:48 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-01-16 21:33:48 +0900
commitc7cff199dc14a7fb7a43910f885ca7fa9b2ccdfd (patch)
treee2179909fd18539d5a03ebcf4cba06a2702e7225 /test/t/array.rb
parente63c1e1d493bb97d4a299e2ab55c8aa6e46681e0 (diff)
downloadmruby-c7cff199dc14a7fb7a43910f885ca7fa9b2ccdfd.tar.gz
mruby-c7cff199dc14a7fb7a43910f885ca7fa9b2ccdfd.zip
hash value of enumerable should be obtained from its elements; close #1658
Diffstat (limited to 'test/t/array.rb')
-rw-r--r--test/t/array.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index 8ef1eee3f..5e745354f 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -301,6 +301,7 @@ assert('Array#hash', '15.2.12.5.35') do
a = [ 1, 2, 3 ]
assert_true(a.hash.is_a? Integer)
+ assert_equal([1,2].hash, [1,2].hash)
end
assert('Array#<=>', '15.2.12.5.36') do
@@ -328,6 +329,3 @@ assert("Array (Longish inline array)") do
ary.each {|p| h[p.class] += 1}
assert_equal({Array=>200}, h)
end
-
-
-