ruby-changes:49396
From: normal <ko1@a...>
Date: Fri, 29 Dec 2017 15:47:36 +0900 (JST)
Subject: [ruby-changes:49396] normal:r61512 (trunk): test/ruby/test_hash: minor test cleanup
normal 2017-12-29 15:47:29 +0900 (Fri, 29 Dec 2017) New Revision: 61512 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61512 Log: 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 Modified files: trunk/test/ruby/test_hash.rb Index: test/ruby/test_hash.rb =================================================================== --- test/ruby/test_hash.rb (revision 61511) +++ test/ruby/test_hash.rb (revision 61512) @@ -305,10 +305,10 @@ class TestHash < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_hash.rb#L305 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 # '==' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/