aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2020-07-23 11:33:11 +0900
committernagachika <nagachika@ruby-lang.org>2020-07-23 11:33:11 +0900
commit4be9bf1f67b997fc519625d56a93b8a68a70d124 (patch)
treeba256925c66e9e34905e22e8130db0321a88f8f1 /test
parent13d2ab0d88bbf72ed310efaec6edc46dd96fdb4d (diff)
downloadruby-4be9bf1f67b997fc519625d56a93b8a68a70d124.tar.gz
merge revision(s) 99a9c3fe2eaab8157765d792dc871da6daea0327: [Backport #17024]
Fixed yday and wday with timezone [Bug #17024]
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time_tz.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 83482eac65..7f0a306783 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -608,6 +608,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)