aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_string.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-18 07:21:05 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-18 07:21:05 +0000
commit4ee0bd78998f891df798dc36e3129026edce2c5c (patch)
tree1ff344f233004b6744c787606cd0894bf9ec4029 /test/ruby/test_string.rb
parente0e5ee7e0c5c854c56acfba2810a759ab0b3f9df (diff)
downloadruby-4ee0bd78998f891df798dc36e3129026edce2c5c.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/ruby/test_string.rb')
-rw-r--r--test/ruby/test_string.rb2
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