1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added a test for [Bug #16159]

This commit is contained in:
Nobuyoshi Nakada 2019-12-17 11:53:30 +09:00
parent ebe5b66ca8
commit c687be4bc0
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -156,6 +156,12 @@ class TestTimeTZ < Test::Unit::TestCase
}
end
def test_asia_kuala_lumpur
with_tz(tz="Asia/Kuala_Lumpur") {
assert_time_constructor(tz, "1933-01-01 00:20:00 +0720", :local, [1933])
}
end
def test_canada_newfoundland
with_tz(tz="America/St_Johns") {
assert_time_constructor(tz, "2007-11-03 23:00:59 -0230", :new, [2007,11,3,23,0,59,:dst])