From 9bf6d4721ca1d051298b9206fa94d3b457f150c5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Oct 2018 08:46:50 +0000 Subject: Removed redundant suffix `_with_timezone` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_time_tz.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index 46bbc8433b..fdea7a8e0f 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -520,24 +520,24 @@ class TestTimeTZ::WithTZ < Test::Unit::TestCase "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) -- cgit v1.2.3