1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
ko1 2018-12-25 07:21:45 +00:00
parent d880245cbc
commit 83515c6c32

View file

@ -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