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:
parent
d880245cbc
commit
83515c6c32
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue