diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-08 11:25:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-08 11:25:06 +0000 |
commit | cf85aaf83e48c8e2492432673b7e0f88ed4c97a9 (patch) | |
tree | 504d3e0cff2c6837e04db1883a9d9755bf388e30 /test | |
parent | 0727a22c69641c98edd50668322d8f0270bec457 (diff) | |
download | ruby-cf85aaf83e48c8e2492432673b7e0f88ed4c97a9.tar.gz |
hash.c: reject shoult infect
* hash.c (rb_hash_reject): result should be infected by the
receiver.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_hash.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 4244b86b56..0593785148 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -555,6 +555,8 @@ class TestHash < Test::Unit::TestCase assert_equal(h3, h.reject {|k,v| v }) assert_equal(base, h) + + assert_predicate(h.taint.reject {true}, :tainted?) end def test_reject! |