diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-25 07:21:45 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-25 07:21:45 +0000 |
commit | 83515c6c32ce02f6360107e4be1c558c8586b425 (patch) | |
tree | 229ae9f7233a3b1b3e4bffb5fe6b2a13b5849090 /test/ruby/test_literal.rb | |
parent | d880245cbce160738c1dd98c8b8b423ea7c0fe7f (diff) | |
download | ruby-83515c6c32ce02f6360107e4be1c558c8586b425.tar.gz |
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
Diffstat (limited to 'test/ruby/test_literal.rb')
-rw-r--r-- | test/ruby/test_literal.rb | 3 |
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 |