From 217b8e5c255c8123751173e61db75d821e3d3eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Fri, 25 Feb 2011 21:08:34 +0000 Subject: add a failing test for time strings whose timezone follows the (+/-)dddd format --- test/psych/test_scalar_scanner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb index 636030f..df54eb1 100644 --- a/test/psych/test_scalar_scanner.rb +++ b/test/psych/test_scalar_scanner.rb @@ -13,7 +13,8 @@ module Psych { '2001-12-15T02:59:43.1Z' => Time.utc(2001, 12, 15, 02, 59, 43, 100000), '2001-12-14t21:59:43.10-05:00' => Time.utc(2001, 12, 15, 02, 59, 43, 100000), '2001-12-14 21:59:43.10 -5' => Time.utc(2001, 12, 15, 02, 59, 43, 100000), - '2001-12-15 2:59:43.10' => Time.utc(2001, 12, 15, 02, 59, 43, 100000) + '2001-12-15 2:59:43.10' => Time.utc(2001, 12, 15, 02, 59, 43, 100000), + '2011-02-24 11:17:06 -0800' => Time.utc(2011, 02, 24, 19, 17, 06) }.each do |time_str, time| assert_equal time, @ss.tokenize(time_str) end -- cgit v1.2.3