aboutsummaryrefslogtreecommitdiffstats
path: root/test/date
diff options
context:
space:
mode:
Diffstat (limited to 'test/date')
-rw-r--r--test/date/test_switch_hitter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
index 9500821b2b..6031708928 100644
--- a/test/date/test_switch_hitter.rb
+++ b/test/date/test_switch_hitter.rb
@@ -375,6 +375,8 @@ class TestSH < Test::Unit::TestCase
assert_equal(false, s.tainted?)
s = Date.today.strftime('new 105'.taint)
assert_equal(true, s.tainted?)
+ s = Date.today.strftime("new \000 105".taint)
+ assert_equal(true, s.tainted?)
s = DateTime.now.strftime('super $record')
assert_equal(false, s.tainted?)