diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-21 13:07:46 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-21 13:07:46 +0000 |
commit | a04e4ae82b8d28b1fd40834bd12e4584f0695655 (patch) | |
tree | bd1d666ec6b1b95577a8b2bcdcd17a9d609fce2d | |
parent | d39f52e87b3583a0bf2b565deaccec5634cf51db (diff) | |
download | ruby-a04e4ae82b8d28b1fd40834bd12e4584f0695655.tar.gz |
added tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/date/test_switch_hitter.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb index 0ca45e4c30..d309c8ee69 100644 --- a/test/date/test_switch_hitter.rb +++ b/test/date/test_switch_hitter.rb @@ -256,6 +256,11 @@ class TestSH < Test::Unit::TestCase h = Date._strptime('15:43+09:00'.taint, '%R%z') assert_equal(true, h[:zone].tainted?) + h = Date._strptime('1;1/0', '%d') + assert_equal(false, h[:leftover].tainted?) + h = Date._strptime('1;1/0'.taint, '%d') + assert_equal(true, h[:leftover].tainted?) + h = Date._parse('15:43+09:00') assert_equal(false, h[:zone].tainted?) h = Date._parse('15:43+09:00'.taint) |