ruby-changes:4146
From: ko1@a...
Date: Fri, 29 Feb 2008 03:32:43 +0900 (JST)
Subject: [ruby-changes:4146] naruse - Ruby:r15636 (trunk): * test/ruby/test_time.rb (test_readers): fix typo.
naruse 2008-02-29 03:32:17 +0900 (Fri, 29 Feb 2008) New Revision: 15636 Modified files: trunk/ChangeLog trunk/test/ruby/test_time.rb Log: * test/ruby/test_time.rb (test_readers): fix typo. (test_strftime): "UTC" is also ok for time.gmtime.strftime("%Z"). http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15636&r2=15635&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_time.rb?r1=15636&r2=15635&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15635) +++ ChangeLog (revision 15636) @@ -1,3 +1,8 @@ +Fri Feb 29 03:22:19 2008 NARUSE, Yui <naruse@r...> + + * test/ruby/test_time.rb (test_readers): fix typo. + (test_strftime): "UTC" is also ok for time.gmtime.strftime("%Z"). + Fri Feb 29 02:50:07 2008 NARUSE, Yui <naruse@r...> * string.c (str_new): remove encoding assumption of empty string. Index: test/ruby/test_time.rb =================================================================== --- test/ruby/test_time.rb (revision 15635) +++ test/ruby/test_time.rb (revision 15636) @@ -327,6 +327,7 @@ end def test_strftime + t = Time.at(946684800).getlocal assert_equal("Sat", T2000.strftime("%a")) assert_equal("Saturday", T2000.strftime("%A")) assert_equal("Jan", T2000.strftime("%b")) @@ -347,7 +348,7 @@ assert_equal("00:00:00", T2000.strftime("%X")) assert_equal("00", T2000.strftime("%y")) assert_equal("2000", T2000.strftime("%Y")) - assert_equal("GMT", T2000.strftime("%Z")) + assert(["GMT", "UTC"].include?(T2000.strftime("%Z"))) assert_equal("%", T2000.strftime("%%")) assert_equal("", T2000.strftime("")) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/