aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_literal.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index 3bb2aed65b..ff40474bf7 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -291,7 +291,8 @@ class TestRubyLiteral < Test::Unit::TestCase
end
ObjectSpace.each_object(Hash) do |a|
- if a.class == Hash and !a.default_proc and a.size == 3
+ if a.class == Hash and !a.default_proc and a.size == 3 &&
+ a[0] == 1 && a[1] == 4 && a[2] == 17
# should not be found.
raise
end