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:
parent
ebe5b66ca8
commit
c687be4bc0
1 changed files with 6 additions and 0 deletions
|
@ -156,6 +156,12 @@ class TestTimeTZ < Test::Unit::TestCase
|
||||||
}
|
}
|
||||||
end
|
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
|
def test_canada_newfoundland
|
||||||
with_tz(tz="America/St_Johns") {
|
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])
|
assert_time_constructor(tz, "2007-11-03 23:00:59 -0230", :new, [2007,11,3,23,0,59,:dst])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue