Skip to content

Commit

Permalink
add a failing test for time strings whose timezone follows the (+/-)d…
Browse files Browse the repository at this point in the history
…ddd format
  • Loading branch information
goncalossilva authored and tenderlove committed Feb 25, 2011
1 parent 365ae37 commit 217b8e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/psych/test_scalar_scanner.rb
Expand Up @@ -13,7 +13,8 @@ def test_scan_time
{ '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
Expand Down

0 comments on commit 217b8e5

Please sign in to comment.