aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_time.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-24 13:37:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-24 13:37:58 +0000
commit90b1eb1317f4687c4a471c44d8c24a10e73c95f5 (patch)
tree6f9eddc1a09fb7a446a7dbf094481ec0835e4e7f /test/test_time.rb
parentf77d8722c2d7728e0e57c59751a373cba464efab (diff)
downloadruby-90b1eb1317f4687c4a471c44d8c24a10e73c95f5.tar.gz
add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_time.rb')
-rw-r--r--test/test_time.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_time.rb b/test/test_time.rb
index 7cb75ab6c8..d8468c6c43 100644
--- a/test/test_time.rb
+++ b/test/test_time.rb
@@ -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