1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/date/test_*.rb: added tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2011-08-13 00:41:10 +00:00
parent 14b57772ec
commit c67712ef63
4 changed files with 25 additions and 0 deletions

View file

@ -655,6 +655,9 @@ class TestDateParse < Test::Unit::TestCase
assert_raise(ArgumentError) do
Date.parse('')
end
assert_raise(ArgumentError) do
DateTime.parse('')
end
assert_raise(ArgumentError) do
Date.parse('2001-02-29')
end