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

add an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-06-24 13:37:58 +00:00
parent f77d8722c2
commit 90b1eb1317

View file

@ -147,6 +147,8 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
Time.xmlschema("2000-01-12T12:13:14Z"))
assert_equal(Time.utc(2001, 4, 17, 19, 23, 17, 300000),
Time.xmlschema("2001-04-17T19:23:17.3Z"))
assert_equal(Time.utc(2000, 1, 2, 0, 0, 0),
Time.xmlschema("2000-01-01T24:00:00Z"))
assert_raise(ArgumentError) { Time.xmlschema("2000-01-01T00:00:00.+00:00") }
end