ruby-changes:16562
From: tenderlove <ko1@a...>
Date: Tue, 6 Jul 2010 10:23:13 +0900 (JST)
Subject: [ruby-changes:16562] Ruby:r28554 (trunk): * test/psych/visitors/test_to_ruby.rb (test_time): time test must
tenderlove 2010-07-06 10:23:07 +0900 (Tue, 06 Jul 2010) New Revision: 28554 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28554 Log: * test/psych/visitors/test_to_ruby.rb (test_time): time test must respect non-whole timezone. Thanks akr! [ruby-core:31061] Modified files: trunk/test/psych/visitors/test_to_ruby.rb Index: test/psych/visitors/test_to_ruby.rb =================================================================== --- test/psych/visitors/test_to_ruby.rb (revision 28553) +++ test/psych/visitors/test_to_ruby.rb (revision 28554) @@ -113,7 +113,9 @@ def test_time now = Time.now formatted = now.strftime("%Y-%m-%d %H:%M:%S") + - ".%09d %+.2d:00" % [now.nsec, now.gmt_offset / 3600] + ".%09d %+.2d:%2d" % [ now.nsec, + now.gmt_offset / 3600, + now.gmt_offset % 3600 / 60] assert_equal now, Nodes::Scalar.new(formatted).to_ruby end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/