Tests/LibTimeZone: Add test cases for the America/Sao_Paulo timezone

This commit is contained in:
Eduardo Casadei authored and Lucas Chollet committed 2026-01-07 17:42:29 +01:00
1 parent 9804b92ce5
commit 35e789ac47
1 file changed
+5
+5
View File
@@ -178,6 +178,11 @@ TEST_CASE(get_time_zone_offset_with_dst)
test_offset("America/Asuncion"sv, 1642558528, offset(-1, 3, 00, 00), Yes); // Wednesday, January 19, 2022 2:15:28 AM
test_offset("America/Asuncion"sv, 1663553728, offset(-1, 4, 00, 00), No); // Monday, September 19, 2022 2:15:28 AM
test_offset("America/Asuncion"sv, 1671453238, offset(-1, 3, 00, 00), Yes); // Monday, December 19, 2022 12:33:58 PM
// Brazil's DST rules end in 2019.
test_offset("America/Sao_Paulo"sv, 1546308000, offset(-1, 2, 00, 00), Yes); // Tuesday, January 1, 2019 02:00:00 AM
test_offset("America/Sao_Paulo"sv, 1550372400, offset(-1, 3, 00, 00), No); // Sunday, February 17, 2019 03:00:00 AM
test_offset("America/Sao_Paulo"sv, 1577847600, offset(-1, 3, 00, 00), No); // Wednesday, January 1, 2020 03:00:00 AM
}
TEST_CASE(get_named_time_zone_offsets)