ruby-changes:23765
From: tadf <ko1@a...>
Date: Sun, 27 May 2012 10:05:41 +0900 (JST)
Subject: [ruby-changes:23765] tadf:r35816 (trunk): modified test.
tadf 2012-05-27 10:05:31 +0900 (Sun, 27 May 2012) New Revision: 35816 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35816 Log: modified test. Modified files: trunk/test/date/test_date_strftime.rb Index: test/date/test_date_strftime.rb =================================================================== --- test/date/test_date_strftime.rb (revision 35815) +++ test/date/test_date_strftime.rb (revision 35816) @@ -72,19 +72,19 @@ assert_equal(s[0], d.strftime(f), [f, s].inspect) case f[-1,1] when 'c', 'C', 'x', 'X', 'y', 'Y' - f2 = f.sub(/\A%/, '%E') - assert_equal(s[0], d.strftime(f2), [f2, s].inspect) + f2 = f.sub(/\A%/, '%E') + assert_equal(s[0], d.strftime(f2), [f2, s].inspect) else - f2 = f.sub(/\A%/, '%E') - assert_equal(f2, d.strftime(f2), [f2, s].inspect) + f2 = f.sub(/\A%/, '%E') + assert_equal(f2, d.strftime(f2), [f2, s].inspect) end case f[-1,1] - when 'd', 'e', 'H', 'I', 'm', 'M', 'S', 'u', 'U', 'V', 'w', 'W', 'y' - f2 = f.sub(/\A%/, '%O') - assert_equal(s[0], d.strftime(f2), [f2, s].inspect) + when 'd', 'e', 'H', 'k', 'I', 'l', 'm', 'M', 'S', 'u', 'U', 'V', 'w', 'W', 'y' + f2 = f.sub(/\A%/, '%O') + assert_equal(s[0], d.strftime(f2), [f2, s].inspect) else - f2 = f.sub(/\A%/, '%O') - assert_equal(f2, d.strftime(f2), [f2, s].inspect) + f2 = f.sub(/\A%/, '%O') + assert_equal(f2, d.strftime(f2), [f2, s].inspect) end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/