dbremner / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
0 stars 0 forks source link

Taint with substrings - nearly perfect... #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
svn version 145.

def test_taints
 str1 = "test string"
 str1.taint
 assert_equal true, str1.tainted?
 assert_equal true, str1[0...-1].tainted?
 assert_equal true, str1[0...1].tainted?
 assert_equal true, str1[0...2].tainted?
 assert_equal true, str1[0...3].tainted?
 assert_equal true, str1[0..0].tainted?
 assert_equal true, str1[0...0].tainted?  # <- fail (pass with MRI)
end

Original issue reported on code.google.com by djl.rif...@googlemail.com on 23 Oct 2007 at 1:18

GoogleCodeExporter commented 8 years ago

Original comment by meaningi...@gmail.com on 25 Oct 2007 at 3:42