mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
test: 更正 Casey 时区单测注释与函数名贴合真实源表
This commit is contained in:
@@ -1242,8 +1242,8 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn casey_two_transitions_same_wall_day() {
|
fn casey_2010_revert_to_utc8() {
|
||||||
// 2010-03-04 同一墙历日两次生效(表中为两条不同纪元 transition),解析器只保表。
|
// 2010-03-05 02:00(+11:00 当地)一次性回到 +08:00,源表为一次性日期而非循环规则。
|
||||||
assert_eq!(tz_offset_seconds("Antarctica/Casey", 1267714800 - 1), Some(39600));
|
assert_eq!(tz_offset_seconds("Antarctica/Casey", 1267714800 - 1), Some(39600));
|
||||||
assert_eq!(tz_offset_seconds("Antarctica/Casey", 1267714800), Some(28800));
|
assert_eq!(tz_offset_seconds("Antarctica/Casey", 1267714800), Some(28800));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user