diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-12 14:09:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-12 21:58:13 +0900 |
commit | 99a9c3fe2eaab8157765d792dc871da6daea0327 (patch) | |
tree | ae623193dfd48aa2af9280d878ca382f4063e68e /test/ruby | |
parent | 90935ff29424c4542d2122f4097ec684cb4b3adf (diff) |
Fixed yday and wday with timezone [Bug #17024]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3312
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_time_tz.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index a95f9e74b4..1d86d0c9f7 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -604,6 +604,8 @@ module TestTimeTZ::WithTZ assert_equal([2018, 9, 1, 12, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) h, m = (-utc_offset / 60).divmod(60) assert_equal(time_class.utc(2018, 9, 1, 12+h, m, 0).to_i, t.to_i) + assert_equal(6, t.wday) + assert_equal(244, t.yday) end def subtest_now(time_class, tz, tzarg, tzname, abbr, utc_offset) |