summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-02-25 21:08:34 +0000
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-25 14:08:10 -0800
commit217b8e5c255c8123751173e61db75d821e3d3eb1 (patch)
treeaa015d4fdaff1bc252bf7ac3caa11fd694135118 /test
parent365ae37aba229c4ca9c4232cfa7b5275c64647d1 (diff)
downloadpsych-217b8e5c255c8123751173e61db75d821e3d3eb1.zip
add a failing test for time strings whose timezone follows the (+/-)dddd format
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_scalar_scanner.rb3
1 files changed, 2 insertions, 1 deletions
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