From 49d65bc4d62d0ad09adaac897edbeb192f2c125d Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 18 Jan 2012 22:13:10 +0000 Subject: ext/date/date_parse.c: [ruby-core:42173]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/date/test_date_strptime.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/date/test_date_strptime.rb') 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 -- cgit v1.2.3