diff options
Diffstat (limited to 'test/ruby/test_string.rb')
-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 5ee026c327..a35f6a3bb7 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1156,6 +1156,8 @@ class TestString < Test::Unit::TestCase /h/ =~ a a.scan('x') assert_nil($~) + + assert_equal(3, S("hello hello hello").scan("hello".taint).count(&:tainted?)) end def test_size |