test/ruby/test_hash: minor test cleanup
Prep work for proposed behavior change: https://bugs.ruby-lang.org/issues/14225 * test/ruby/test_hash.rb (test_tainted_string_key): assert_predicate git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ccbd6ee55a
commit
18640bf9f0
@ -305,10 +305,10 @@ class TestHash < Test::Unit::TestCase
|
||||
h = {}
|
||||
h[str] = nil
|
||||
key = h.keys.first
|
||||
assert_equal true, str.tainted?
|
||||
assert_equal false, str.frozen?
|
||||
assert_equal true, key.tainted?
|
||||
assert_equal true, key.frozen?
|
||||
assert_predicate str, :tainted?
|
||||
assert_not_predicate str, :frozen?
|
||||
assert_predicate key, :tainted?
|
||||
assert_predicate key, :frozen?
|
||||
end
|
||||
|
||||
def test_EQUAL # '=='
|
||||
|
Loading…
x
Reference in New Issue
Block a user