Skip to content

Commit

Permalink
Regen tests for 2019a
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Apr 16, 2019
1 parent c6439e3 commit 2762710
Show file tree
Hide file tree
Showing 55 changed files with 1,663 additions and 798 deletions.
141 changes: 140 additions & 1 deletion tests/zones/africa/casablanca.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,145 @@ exports["Africa/Casablanca"] = {
["2018-05-13T01:59:59+00:00", "02:59:59", "+01", -60],
["2018-05-13T02:00:00+00:00", "02:00:00", "+00", 0],
["2018-06-17T01:59:59+00:00", "01:59:59", "+00", 0],
["2018-06-17T02:00:00+00:00", "03:00:00", "+01", -60]
["2018-06-17T02:00:00+00:00", "03:00:00", "+01", -60],
["2018-10-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2018-10-28T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2019" : helpers.makeTestYear("Africa/Casablanca", [
["2019-05-05T01:59:59+00:00", "02:59:59", "+01", -60],
["2019-05-05T02:00:00+00:00", "02:00:00", "+00", 0],
["2019-06-09T01:59:59+00:00", "01:59:59", "+00", 0],
["2019-06-09T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2020" : helpers.makeTestYear("Africa/Casablanca", [
["2020-04-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2020-04-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2020-05-24T01:59:59+00:00", "01:59:59", "+00", 0],
["2020-05-24T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2021" : helpers.makeTestYear("Africa/Casablanca", [
["2021-04-11T01:59:59+00:00", "02:59:59", "+01", -60],
["2021-04-11T02:00:00+00:00", "02:00:00", "+00", 0],
["2021-05-16T01:59:59+00:00", "01:59:59", "+00", 0],
["2021-05-16T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2022" : helpers.makeTestYear("Africa/Casablanca", [
["2022-03-27T01:59:59+00:00", "02:59:59", "+01", -60],
["2022-03-27T02:00:00+00:00", "02:00:00", "+00", 0],
["2022-05-08T01:59:59+00:00", "01:59:59", "+00", 0],
["2022-05-08T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2023" : helpers.makeTestYear("Africa/Casablanca", [
["2023-03-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2023-03-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2023-04-23T01:59:59+00:00", "01:59:59", "+00", 0],
["2023-04-23T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2024" : helpers.makeTestYear("Africa/Casablanca", [
["2024-03-10T01:59:59+00:00", "02:59:59", "+01", -60],
["2024-03-10T02:00:00+00:00", "02:00:00", "+00", 0],
["2024-04-14T01:59:59+00:00", "01:59:59", "+00", 0],
["2024-04-14T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2025" : helpers.makeTestYear("Africa/Casablanca", [
["2025-02-23T01:59:59+00:00", "02:59:59", "+01", -60],
["2025-02-23T02:00:00+00:00", "02:00:00", "+00", 0],
["2025-04-06T01:59:59+00:00", "01:59:59", "+00", 0],
["2025-04-06T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2026" : helpers.makeTestYear("Africa/Casablanca", [
["2026-02-15T01:59:59+00:00", "02:59:59", "+01", -60],
["2026-02-15T02:00:00+00:00", "02:00:00", "+00", 0],
["2026-03-22T01:59:59+00:00", "01:59:59", "+00", 0],
["2026-03-22T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2027" : helpers.makeTestYear("Africa/Casablanca", [
["2027-02-07T01:59:59+00:00", "02:59:59", "+01", -60],
["2027-02-07T02:00:00+00:00", "02:00:00", "+00", 0],
["2027-03-14T01:59:59+00:00", "01:59:59", "+00", 0],
["2027-03-14T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2028" : helpers.makeTestYear("Africa/Casablanca", [
["2028-01-23T01:59:59+00:00", "02:59:59", "+01", -60],
["2028-01-23T02:00:00+00:00", "02:00:00", "+00", 0],
["2028-02-27T01:59:59+00:00", "01:59:59", "+00", 0],
["2028-02-27T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2029" : helpers.makeTestYear("Africa/Casablanca", [
["2029-01-14T01:59:59+00:00", "02:59:59", "+01", -60],
["2029-01-14T02:00:00+00:00", "02:00:00", "+00", 0],
["2029-02-18T01:59:59+00:00", "01:59:59", "+00", 0],
["2029-02-18T02:00:00+00:00", "03:00:00", "+01", -60],
["2029-12-30T01:59:59+00:00", "02:59:59", "+01", -60],
["2029-12-30T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2030" : helpers.makeTestYear("Africa/Casablanca", [
["2030-02-10T01:59:59+00:00", "01:59:59", "+00", 0],
["2030-02-10T02:00:00+00:00", "03:00:00", "+01", -60],
["2030-12-22T01:59:59+00:00", "02:59:59", "+01", -60],
["2030-12-22T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2031" : helpers.makeTestYear("Africa/Casablanca", [
["2031-01-26T01:59:59+00:00", "01:59:59", "+00", 0],
["2031-01-26T02:00:00+00:00", "03:00:00", "+01", -60],
["2031-12-14T01:59:59+00:00", "02:59:59", "+01", -60],
["2031-12-14T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2032" : helpers.makeTestYear("Africa/Casablanca", [
["2032-01-18T01:59:59+00:00", "01:59:59", "+00", 0],
["2032-01-18T02:00:00+00:00", "03:00:00", "+01", -60],
["2032-11-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2032-11-28T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2033" : helpers.makeTestYear("Africa/Casablanca", [
["2033-01-09T01:59:59+00:00", "01:59:59", "+00", 0],
["2033-01-09T02:00:00+00:00", "03:00:00", "+01", -60],
["2033-11-20T01:59:59+00:00", "02:59:59", "+01", -60],
["2033-11-20T02:00:00+00:00", "02:00:00", "+00", 0],
["2033-12-25T01:59:59+00:00", "01:59:59", "+00", 0],
["2033-12-25T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2034" : helpers.makeTestYear("Africa/Casablanca", [
["2034-11-05T01:59:59+00:00", "02:59:59", "+01", -60],
["2034-11-05T02:00:00+00:00", "02:00:00", "+00", 0],
["2034-12-17T01:59:59+00:00", "01:59:59", "+00", 0],
["2034-12-17T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2035" : helpers.makeTestYear("Africa/Casablanca", [
["2035-10-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2035-10-28T02:00:00+00:00", "02:00:00", "+00", 0],
["2035-12-02T01:59:59+00:00", "01:59:59", "+00", 0],
["2035-12-02T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2036" : helpers.makeTestYear("Africa/Casablanca", [
["2036-10-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2036-10-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2036-11-23T01:59:59+00:00", "01:59:59", "+00", 0],
["2036-11-23T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2037" : helpers.makeTestYear("Africa/Casablanca", [
["2037-10-04T01:59:59+00:00", "02:59:59", "+01", -60],
["2037-10-04T02:00:00+00:00", "02:00:00", "+00", 0],
["2037-11-15T01:59:59+00:00", "01:59:59", "+00", 0],
["2037-11-15T02:00:00+00:00", "03:00:00", "+01", -60]
])
};
139 changes: 138 additions & 1 deletion tests/zones/africa/el_aaiun.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,143 @@ exports["Africa/El_Aaiun"] = {
["2018-05-13T01:59:59+00:00", "02:59:59", "+01", -60],
["2018-05-13T02:00:00+00:00", "02:00:00", "+00", 0],
["2018-06-17T01:59:59+00:00", "01:59:59", "+00", 0],
["2018-06-17T02:00:00+00:00", "03:00:00", "+01", -60]
["2018-06-17T02:00:00+00:00", "03:00:00", "+01", -60],
["2018-10-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2018-10-28T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2019" : helpers.makeTestYear("Africa/El_Aaiun", [
["2019-05-05T01:59:59+00:00", "02:59:59", "+01", -60],
["2019-05-05T02:00:00+00:00", "02:00:00", "+00", 0],
["2019-06-09T01:59:59+00:00", "01:59:59", "+00", 0],
["2019-06-09T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2020" : helpers.makeTestYear("Africa/El_Aaiun", [
["2020-04-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2020-04-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2020-05-24T01:59:59+00:00", "01:59:59", "+00", 0],
["2020-05-24T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2021" : helpers.makeTestYear("Africa/El_Aaiun", [
["2021-04-11T01:59:59+00:00", "02:59:59", "+01", -60],
["2021-04-11T02:00:00+00:00", "02:00:00", "+00", 0],
["2021-05-16T01:59:59+00:00", "01:59:59", "+00", 0],
["2021-05-16T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2022" : helpers.makeTestYear("Africa/El_Aaiun", [
["2022-03-27T01:59:59+00:00", "02:59:59", "+01", -60],
["2022-03-27T02:00:00+00:00", "02:00:00", "+00", 0],
["2022-05-08T01:59:59+00:00", "01:59:59", "+00", 0],
["2022-05-08T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2023" : helpers.makeTestYear("Africa/El_Aaiun", [
["2023-03-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2023-03-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2023-04-23T01:59:59+00:00", "01:59:59", "+00", 0],
["2023-04-23T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2024" : helpers.makeTestYear("Africa/El_Aaiun", [
["2024-03-10T01:59:59+00:00", "02:59:59", "+01", -60],
["2024-03-10T02:00:00+00:00", "02:00:00", "+00", 0],
["2024-04-14T01:59:59+00:00", "01:59:59", "+00", 0],
["2024-04-14T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2025" : helpers.makeTestYear("Africa/El_Aaiun", [
["2025-02-23T01:59:59+00:00", "02:59:59", "+01", -60],
["2025-02-23T02:00:00+00:00", "02:00:00", "+00", 0],
["2025-04-06T01:59:59+00:00", "01:59:59", "+00", 0],
["2025-04-06T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2026" : helpers.makeTestYear("Africa/El_Aaiun", [
["2026-02-15T01:59:59+00:00", "02:59:59", "+01", -60],
["2026-02-15T02:00:00+00:00", "02:00:00", "+00", 0],
["2026-03-22T01:59:59+00:00", "01:59:59", "+00", 0],
["2026-03-22T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2027" : helpers.makeTestYear("Africa/El_Aaiun", [
["2027-02-07T01:59:59+00:00", "02:59:59", "+01", -60],
["2027-02-07T02:00:00+00:00", "02:00:00", "+00", 0],
["2027-03-14T01:59:59+00:00", "01:59:59", "+00", 0],
["2027-03-14T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2028" : helpers.makeTestYear("Africa/El_Aaiun", [
["2028-01-23T01:59:59+00:00", "02:59:59", "+01", -60],
["2028-01-23T02:00:00+00:00", "02:00:00", "+00", 0],
["2028-02-27T01:59:59+00:00", "01:59:59", "+00", 0],
["2028-02-27T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2029" : helpers.makeTestYear("Africa/El_Aaiun", [
["2029-01-14T01:59:59+00:00", "02:59:59", "+01", -60],
["2029-01-14T02:00:00+00:00", "02:00:00", "+00", 0],
["2029-02-18T01:59:59+00:00", "01:59:59", "+00", 0],
["2029-02-18T02:00:00+00:00", "03:00:00", "+01", -60],
["2029-12-30T01:59:59+00:00", "02:59:59", "+01", -60],
["2029-12-30T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2030" : helpers.makeTestYear("Africa/El_Aaiun", [
["2030-02-10T01:59:59+00:00", "01:59:59", "+00", 0],
["2030-02-10T02:00:00+00:00", "03:00:00", "+01", -60],
["2030-12-22T01:59:59+00:00", "02:59:59", "+01", -60],
["2030-12-22T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2031" : helpers.makeTestYear("Africa/El_Aaiun", [
["2031-01-26T01:59:59+00:00", "01:59:59", "+00", 0],
["2031-01-26T02:00:00+00:00", "03:00:00", "+01", -60],
["2031-12-14T01:59:59+00:00", "02:59:59", "+01", -60],
["2031-12-14T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2032" : helpers.makeTestYear("Africa/El_Aaiun", [
["2032-01-18T01:59:59+00:00", "01:59:59", "+00", 0],
["2032-01-18T02:00:00+00:00", "03:00:00", "+01", -60],
["2032-11-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2032-11-28T02:00:00+00:00", "02:00:00", "+00", 0]
]),

"2033" : helpers.makeTestYear("Africa/El_Aaiun", [
["2033-01-09T01:59:59+00:00", "01:59:59", "+00", 0],
["2033-01-09T02:00:00+00:00", "03:00:00", "+01", -60],
["2033-11-20T01:59:59+00:00", "02:59:59", "+01", -60],
["2033-11-20T02:00:00+00:00", "02:00:00", "+00", 0],
["2033-12-25T01:59:59+00:00", "01:59:59", "+00", 0],
["2033-12-25T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2034" : helpers.makeTestYear("Africa/El_Aaiun", [
["2034-11-05T01:59:59+00:00", "02:59:59", "+01", -60],
["2034-11-05T02:00:00+00:00", "02:00:00", "+00", 0],
["2034-12-17T01:59:59+00:00", "01:59:59", "+00", 0],
["2034-12-17T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2035" : helpers.makeTestYear("Africa/El_Aaiun", [
["2035-10-28T01:59:59+00:00", "02:59:59", "+01", -60],
["2035-10-28T02:00:00+00:00", "02:00:00", "+00", 0],
["2035-12-02T01:59:59+00:00", "01:59:59", "+00", 0],
["2035-12-02T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2036" : helpers.makeTestYear("Africa/El_Aaiun", [
["2036-10-19T01:59:59+00:00", "02:59:59", "+01", -60],
["2036-10-19T02:00:00+00:00", "02:00:00", "+00", 0],
["2036-11-23T01:59:59+00:00", "01:59:59", "+00", 0],
["2036-11-23T02:00:00+00:00", "03:00:00", "+01", -60]
]),

"2037" : helpers.makeTestYear("Africa/El_Aaiun", [
["2037-10-04T01:59:59+00:00", "02:59:59", "+01", -60],
["2037-10-04T02:00:00+00:00", "02:00:00", "+00", 0]
])
};
5 changes: 5 additions & 0 deletions tests/zones/africa/sao_tome.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ exports["Africa/Sao_Tome"] = {

"1912" : helpers.makeTestYear("Africa/Sao_Tome", [
["1912-01-01T00:00:00+00:00", "00:00:00", "GMT", 0]
]),

"2018" : helpers.makeTestYear("Africa/Sao_Tome", [
["2018-01-01T00:59:59+00:00", "00:59:59", "GMT", 0],
["2018-01-01T01:00:00+00:00", "02:00:00", "WAT", -60]
])
};
4 changes: 2 additions & 2 deletions tests/zones/america/caracas.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["America/Caracas"] = {

"guess:by:offset" : helpers.makeTestGuess("America/Caracas", { offset: true }),
"guess:by:offset" : helpers.makeTestGuess("America/Caracas", { offset: true, expect: "America/Santo_Domingo" }),

"guess:by:abbr" : helpers.makeTestGuess("America/Caracas", { abbr: true }),
"guess:by:abbr" : helpers.makeTestGuess("America/Caracas", { abbr: true, expect: "America/Santo_Domingo" }),

"1912" : helpers.makeTestYear("America/Caracas", [
["1912-02-12T04:27:39+00:00", "23:59:59", "CMT", 16060 / 60],
Expand Down
8 changes: 5 additions & 3 deletions tests/zones/america/metlakatla.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["America/Metlakatla"] = {

"guess:by:offset" : helpers.makeTestGuess("America/Metlakatla", { offset: true, expect: "America/Anchorage" }),
"guess:by:offset" : helpers.makeTestGuess("America/Metlakatla", { offset: true }),

"guess:by:abbr" : helpers.makeTestGuess("America/Metlakatla", { abbr: true, expect: "America/Anchorage" }),
"guess:by:abbr" : helpers.makeTestGuess("America/Metlakatla", { abbr: true }),

"1900" : helpers.makeTestYear("America/Metlakatla", [
["1900-08-20T20:46:17+00:00", "11:59:59", "LMT", 31578 / 60],
Expand Down Expand Up @@ -153,10 +153,12 @@ exports["America/Metlakatla"] = {
["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540],
["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480],
["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480],
["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540]
["2018-11-04T10:00:00+00:00", "02:00:00", "PST", 480]
]),

"2019" : helpers.makeTestYear("America/Metlakatla", [
["2019-01-20T09:59:59+00:00", "01:59:59", "PST", 480],
["2019-01-20T10:00:00+00:00", "01:00:00", "AKST", 540],
["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540],
["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480],
["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480],
Expand Down
4 changes: 2 additions & 2 deletions tests/zones/america/port-au-prince.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["America/Port-au-Prince"] = {

"guess:by:offset" : helpers.makeTestGuess("America/Port-au-Prince", { offset: true }),
"guess:by:offset" : helpers.makeTestGuess("America/Port-au-Prince", { offset: true, expect: "America/New_York" }),

"guess:by:abbr" : helpers.makeTestGuess("America/Port-au-Prince", { abbr: true }),
"guess:by:abbr" : helpers.makeTestGuess("America/Port-au-Prince", { abbr: true, expect: "America/New_York" }),

"1917" : helpers.makeTestYear("America/Port-au-Prince", [
["1917-01-24T16:48:59+00:00", "11:59:59", "PPMT", 289],
Expand Down
4 changes: 2 additions & 2 deletions tests/zones/america/punta_arenas.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["America/Punta_Arenas"] = {

"guess:by:offset" : helpers.makeTestGuess("America/Punta_Arenas", { offset: true, expect: "Antarctica/Palmer" }),
"guess:by:offset" : helpers.makeTestGuess("America/Punta_Arenas", { offset: true, expect: "America/Fortaleza" }),

"guess:by:abbr" : helpers.makeTestGuess("America/Punta_Arenas", { abbr: true, expect: "Antarctica/Palmer" }),
"guess:by:abbr" : helpers.makeTestGuess("America/Punta_Arenas", { abbr: true, expect: "America/Fortaleza" }),

"1910" : helpers.makeTestYear("America/Punta_Arenas", [
["1910-01-10T04:42:45+00:00", "23:59:59", "SMT", 16966 / 60],
Expand Down
4 changes: 2 additions & 2 deletions tests/zones/antarctica/macquarie.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["Antarctica/Macquarie"] = {

"guess:by:offset" : helpers.makeTestGuess("Antarctica/Macquarie", { offset: true, expect: "Pacific/Norfolk" }),
"guess:by:offset" : helpers.makeTestGuess("Antarctica/Macquarie", { offset: true, expect: "Asia/Sakhalin" }),

"guess:by:abbr" : helpers.makeTestGuess("Antarctica/Macquarie", { abbr: true, expect: "Pacific/Norfolk" }),
"guess:by:abbr" : helpers.makeTestGuess("Antarctica/Macquarie", { abbr: true, expect: "Asia/Sakhalin" }),

"1916" : helpers.makeTestYear("Antarctica/Macquarie", [
["1916-09-30T15:59:59+00:00", "01:59:59", "AEST", -600],
Expand Down
4 changes: 2 additions & 2 deletions tests/zones/antarctica/palmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers");

exports["Antarctica/Palmer"] = {

"guess:by:offset" : helpers.makeTestGuess("Antarctica/Palmer", { offset: true }),
"guess:by:offset" : helpers.makeTestGuess("Antarctica/Palmer", { offset: true, expect: "America/Fortaleza" }),

"guess:by:abbr" : helpers.makeTestGuess("Antarctica/Palmer", { abbr: true }),
"guess:by:abbr" : helpers.makeTestGuess("Antarctica/Palmer", { abbr: true, expect: "America/Fortaleza" }),

"1965" : helpers.makeTestYear("Antarctica/Palmer", [
["1965-03-01T02:59:59+00:00", "23:59:59", "-03", 180],
Expand Down
Loading

0 comments on commit 2762710

Please sign in to comment.