summaryrefslogtreecommitdiff
path: root/test/date/test_date_strftime.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 13:28:48 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 13:28:48 +0000
commit899d2c14b055e180308396b5ef36397c0737f6f7 (patch)
tree09310a78d95c8acd0652f3be4c84359870f8d875 /test/date/test_date_strftime.rb
parent3b3cf8753de031cdd109c5a7bd18ca6d18f95e01 (diff)
* ext/date/date_core.c: use simple/complex mode instead of light/right mode.
* test/date/*.rb: followed the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date/test_date_strftime.rb')
-rw-r--r--test/date/test_date_strftime.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/date/test_date_strftime.rb b/test/date/test_date_strftime.rb
index 72e164c3e5..61a82a17f5 100644
--- a/test/date/test_date_strftime.rb
+++ b/test/date/test_date_strftime.rb
@@ -184,8 +184,12 @@ class TestDateStrftime < Test::Unit::TestCase
s = '2006-08-08T23:15:33'
(-24..24).collect{|x| '%+.2d' % x}.each do |hh|
%w(00 30).each do |mm|
+ r = hh + mm
+ if r[-4,4] == '2430'
+ r = '+0000'
+ end
d = DateTime.parse(s + hh + mm)
- assert_equal(hh + mm, d.strftime('%z'))
+ assert_equal(r, d.strftime('%z'))
end
end
end