diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-08 08:46:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-08 08:46:50 +0000 |
commit | 68ec41d7b94f426b9f2942456971bae21c6b5041 (patch) | |
tree | dc2235cbb3f7e1c2f601e747adf72f00475fa59a | |
parent | 5d85a46e0cab7663a4ccbe1b027c247b532cd211 (diff) | |
download | ruby-68ec41d7b94f426b9f2942456971bae21c6b5041.tar.gz |
Removed redundant suffix `_with_timezone`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_time_tz.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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) |