summaryrefslogtreecommitdiff
path: root/test/date/test_date_strptime.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/date/test_date_strptime.rb')
-rw-r--r--test/date/test_date_strptime.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/date/test_date_strptime.rb b/test/date/test_date_strptime.rb
index 92cf0975a3..ceb649031f 100644
--- a/test/date/test_date_strptime.rb
+++ b/test/date/test_date_strptime.rb
@@ -475,4 +475,12 @@ class TestDateStrptime < Test::Unit::TestCase
end
end
+ def test_given_string
+ s = '2001-02-03T04:05:06Z'
+ s0 = s.dup
+
+ assert_not_equal({}, Date._strptime(s, '%FT%T%Z'))
+ assert_equal(s0, s)
+ end
+
end