* untabified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-27 02:23:14 +00:00
parent 9f698ff1d5
commit a000c52b83

View File

@ -72,19 +72,19 @@ class TestDateStrftime < Test::Unit::TestCase
assert_equal(s[0], d.strftime(f), [f, s].inspect) assert_equal(s[0], d.strftime(f), [f, s].inspect)
case f[-1,1] case f[-1,1]
when 'c', 'C', 'x', 'X', 'y', 'Y' when 'c', 'C', 'x', 'X', 'y', 'Y'
f2 = f.sub(/\A%/, '%E') f2 = f.sub(/\A%/, '%E')
assert_equal(s[0], d.strftime(f2), [f2, s].inspect) assert_equal(s[0], d.strftime(f2), [f2, s].inspect)
else else
f2 = f.sub(/\A%/, '%E') f2 = f.sub(/\A%/, '%E')
assert_equal(f2, d.strftime(f2), [f2, s].inspect) assert_equal(f2, d.strftime(f2), [f2, s].inspect)
end end
case f[-1,1] case f[-1,1]
when 'd', 'e', 'H', 'k', 'I', 'l', 'm', 'M', 'S', 'u', 'U', 'V', 'w', 'W', 'y' when 'd', 'e', 'H', 'k', 'I', 'l', 'm', 'M', 'S', 'u', 'U', 'V', 'w', 'W', 'y'
f2 = f.sub(/\A%/, '%O') f2 = f.sub(/\A%/, '%O')
assert_equal(s[0], d.strftime(f2), [f2, s].inspect) assert_equal(s[0], d.strftime(f2), [f2, s].inspect)
else else
f2 = f.sub(/\A%/, '%O') f2 = f.sub(/\A%/, '%O')
assert_equal(f2, d.strftime(f2), [f2, s].inspect) assert_equal(f2, d.strftime(f2), [f2, s].inspect)
end end
end end
end end