aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-26 19:48:03 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-26 19:48:03 +0000
commit725d6f4970423c6a28d1b0e1864c3651528d5670 (patch)
treeb433fef0a275ff2eed3ae2639bfef59ce2e23f0e /test/psych
parent4760b9824fc4e6ce195249e7b1101bce714b12bd (diff)
downloadruby-725d6f4970423c6a28d1b0e1864c3651528d5670.tar.gz
* ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
strings. * test/psych/test_date_time.rb: test for change. Fixes: https://github.com/tenderlove/psych/issues/171 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_date_time.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb
index 9a8e37bc67..91de6a4841 100644
--- a/test/psych/test_date_time.rb
+++ b/test/psych/test_date_time.rb
@@ -3,6 +3,10 @@ require 'date'
module Psych
class TestDateTime < TestCase
+ def test_invalid_date
+ assert_cycle "2013-10-31T10:40:07-000000000000033"
+ end
+
def test_string_tag
dt = DateTime.now
yaml = Psych.dump dt