diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-18 07:21:05 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-18 07:21:05 +0000 |
commit | 6607266ef81e6ed6ddf90ba982d6609daaa471bc (patch) | |
tree | 1ff344f233004b6744c787606cd0894bf9ec4029 /test | |
parent | 4f473905e14a7dbfdd29248f7a0673022dfaa699 (diff) | |
download | ruby-6607266ef81e6ed6ddf90ba982d6609daaa471bc.tar.gz |
test/ruby/test_string.rb: ensure we do not have tainted strings
Trying to figure out [ruby-core:82092]
cf. https://gist.github.com/e2c899c453f3f66e7934095c32505486
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_string.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index c3fd2b7d94..1f21619798 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -2750,6 +2750,8 @@ CODE assert_not_equal(str.object_id, (+str).object_id) assert_equal(str.object_id, (-str).object_id) bar = %w(b a r).join('') + assert_not_predicate bar, :tainted? + assert_not_predicate str, :tainted? assert_same(str, -bar, "uminus deduplicates [Feature #13077]") end |