From 83515c6c32ce02f6360107e4be1c558c8586b425 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 25 Dec 2018 07:21:45 +0000 Subject: [PATCH] fix a test by restoring value checking. * test/ruby/test_literal.rb (test_hash_literal_frozen): restore value checking code which is removed accidentaly at r66466. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_literal.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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