ruby-changes:52748
From: nobu <ko1@a...>
Date: Mon, 8 Oct 2018 17:46:56 +0900 (JST)
Subject: [ruby-changes:52748] nobu:r64960 (trunk): Removed redundant suffix `_with_timezone`
nobu 2018-10-08 17:46:50 +0900 (Mon, 08 Oct 2018) New Revision: 64960 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64960 Log: Removed redundant suffix `_with_timezone` Modified files: trunk/test/ruby/test_time_tz.rb Index: test/ruby/test_time_tz.rb =================================================================== --- test/ruby/test_time_tz.rb (revision 64959) +++ test/ruby/test_time_tz.rb (revision 64960) @@ -520,24 +520,24 @@ class TestTimeTZ::WithTZ < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L520 "JST" end - def test_new_with_timezone + def test_new t = Time.new(2018, 9, 1, 12, 0, 0, tz) assert_equal([2018, 9, 1, 12, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) assert_equal(Time.utc(2018, 9, 1, 3, 0, 0).to_i, t.to_i) end - def test_getlocal_with_timezone + def test_getlocal t = Time.utc(2018, 9, 1, 12, 0, 0).getlocal(tz) assert_equal([2018, 9, 1, 21, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) assert_equal(Time.utc(2018, 9, 1, 12, 0, 0), t) end - def test_strftime_with_timezone + def test_strftime t = Time.new(2018, 9, 1, 12, 0, 0, tz) assert_equal("+0900 #{abbr}", t.strftime("%z %Z")) end - def test_plus_with_timezone + def test_plus t = Time.new(2018, 9, 1, 12, 0, 0, tz) + 4000 assert_equal([2018, 9, 1, 13, 6, 40, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) assert_equal(Time.utc(2018, 9, 1, 4, 6, 40), t) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/