From 49fa3a919de8844bfa0a7a6b49e766cf4b646d56 Mon Sep 17 00:00:00 2001 From: Gilmore Davidson Date: Sat, 3 Feb 2024 15:34:28 +1100 Subject: [PATCH] tests: Rebuild guess tests for 2024 Unfortunately the guess() function is sensitive to changes to the current year. Ticking over to 2024 means that Fiji now acts the same as other zones for the date ranges checked. Since it has the largest population, it becomes the default guess for a whole bunch of Pacific zones. --- tests/zones/africa/juba.js | 4 ++-- tests/zones/asia/anadyr.js | 4 ++-- tests/zones/asia/kamchatka.js | 4 ++-- tests/zones/etc/gmt-12.js | 4 ++-- tests/zones/kwajalein.js | 4 ++-- tests/zones/pacific/apia.js | 4 ++-- tests/zones/pacific/funafuti.js | 4 ++-- tests/zones/pacific/kwajalein.js | 4 ++-- tests/zones/pacific/majuro.js | 4 ++-- tests/zones/pacific/nauru.js | 4 ++-- tests/zones/pacific/tarawa.js | 4 ++-- tests/zones/pacific/wake.js | 4 ++-- tests/zones/pacific/wallis.js | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/tests/zones/africa/juba.js b/tests/zones/africa/juba.js index bba2b569f..d1ce32dca 100644 --- a/tests/zones/africa/juba.js +++ b/tests/zones/africa/juba.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Africa/Juba"] = { - "guess:by:offset" : helpers.makeTestGuess("Africa/Juba", { offset: true }), + "guess:by:offset" : helpers.makeTestGuess("Africa/Juba", { offset: true, expect: "Africa/Johannesburg" }), - "guess:by:abbr" : helpers.makeTestGuess("Africa/Juba", { abbr: true }), + "guess:by:abbr" : helpers.makeTestGuess("Africa/Juba", { abbr: true, expect: "Africa/Khartoum" }), "1930" : helpers.makeTestYear("Africa/Juba", [ ["1930-12-31T21:53:31+00:00", "23:59:59", "LMT", -7588 / 60], diff --git a/tests/zones/asia/anadyr.js b/tests/zones/asia/anadyr.js index f3a302683..48a70c668 100644 --- a/tests/zones/asia/anadyr.js +++ b/tests/zones/asia/anadyr.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Asia/Anadyr"] = { - "guess:by:offset" : helpers.makeTestGuess("Asia/Anadyr", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Asia/Anadyr", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Asia/Anadyr", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Asia/Anadyr", { abbr: true, expect: "Pacific/Fiji" }), "1924" : helpers.makeTestYear("Asia/Anadyr", [ ["1924-05-01T12:10:03+00:00", "23:59:59", "LMT", -42596 / 60], diff --git a/tests/zones/asia/kamchatka.js b/tests/zones/asia/kamchatka.js index 1a98040ad..735e0f0dd 100644 --- a/tests/zones/asia/kamchatka.js +++ b/tests/zones/asia/kamchatka.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Asia/Kamchatka"] = { - "guess:by:offset" : helpers.makeTestGuess("Asia/Kamchatka", { offset: true }), + "guess:by:offset" : helpers.makeTestGuess("Asia/Kamchatka", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Asia/Kamchatka", { abbr: true }), + "guess:by:abbr" : helpers.makeTestGuess("Asia/Kamchatka", { abbr: true, expect: "Pacific/Fiji" }), "1922" : helpers.makeTestYear("Asia/Kamchatka", [ ["1922-11-09T13:25:23+00:00", "23:59:59", "LMT", -38076 / 60], diff --git a/tests/zones/etc/gmt-12.js b/tests/zones/etc/gmt-12.js index 7cffc8d01..07841093b 100644 --- a/tests/zones/etc/gmt-12.js +++ b/tests/zones/etc/gmt-12.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Etc/GMT-12"] = { - "guess:by:offset" : helpers.makeTestGuess("Etc/GMT-12", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Etc/GMT-12", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Etc/GMT-12", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Etc/GMT-12", { abbr: true, expect: "Pacific/Fiji" }), "1970" : helpers.makeTestYear("Etc/GMT-12", [ ["1970-01-01T00:00:00+00:00", "12:00:00", "+12", -720] diff --git a/tests/zones/kwajalein.js b/tests/zones/kwajalein.js index 65c0cbbec..cba8674ef 100644 --- a/tests/zones/kwajalein.js +++ b/tests/zones/kwajalein.js @@ -4,9 +4,9 @@ var helpers = require("../helpers/helpers"); exports["Kwajalein"] = { - "guess:by:offset" : helpers.makeTestGuess("Kwajalein", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Kwajalein", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Kwajalein", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Kwajalein", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Kwajalein", [ ["1900-12-31T12:50:39+00:00", "23:59:59", "LMT", -40160 / 60], diff --git a/tests/zones/pacific/apia.js b/tests/zones/pacific/apia.js index 3903fdcc6..27409b2dc 100644 --- a/tests/zones/pacific/apia.js +++ b/tests/zones/pacific/apia.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Apia"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Apia", { offset: true }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Apia", { offset: true, expect: "Pacific/Tongatapu" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Apia", { abbr: true }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Apia", { abbr: true, expect: "Pacific/Tongatapu" }), "1892" : helpers.makeTestYear("Pacific/Apia", [ ["1892-07-04T11:26:55+00:00", "23:59:59", "LMT", -45184 / 60], diff --git a/tests/zones/pacific/funafuti.js b/tests/zones/pacific/funafuti.js index 1ff16dd4f..5474f74b0 100644 --- a/tests/zones/pacific/funafuti.js +++ b/tests/zones/pacific/funafuti.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Funafuti"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Funafuti", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Funafuti", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Funafuti", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Funafuti", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Funafuti", [ ["1900-12-31T12:27:55+00:00", "23:59:59", "LMT", -41524 / 60], diff --git a/tests/zones/pacific/kwajalein.js b/tests/zones/pacific/kwajalein.js index 20e151450..315a9227d 100644 --- a/tests/zones/pacific/kwajalein.js +++ b/tests/zones/pacific/kwajalein.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Kwajalein"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Kwajalein", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Kwajalein", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Kwajalein", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Kwajalein", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Kwajalein", [ ["1900-12-31T12:50:39+00:00", "23:59:59", "LMT", -40160 / 60], diff --git a/tests/zones/pacific/majuro.js b/tests/zones/pacific/majuro.js index 683f44e77..91633eb0a 100644 --- a/tests/zones/pacific/majuro.js +++ b/tests/zones/pacific/majuro.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Majuro"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Majuro", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Majuro", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Majuro", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Majuro", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Majuro", [ ["1900-12-31T12:27:55+00:00", "23:59:59", "LMT", -41524 / 60], diff --git a/tests/zones/pacific/nauru.js b/tests/zones/pacific/nauru.js index a9b38122b..9f7b87dc7 100644 --- a/tests/zones/pacific/nauru.js +++ b/tests/zones/pacific/nauru.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Nauru"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Nauru", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Nauru", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Nauru", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Nauru", { abbr: true, expect: "Pacific/Fiji" }), "1921" : helpers.makeTestYear("Pacific/Nauru", [ ["1921-01-14T12:52:19+00:00", "23:59:59", "LMT", -40060 / 60], diff --git a/tests/zones/pacific/tarawa.js b/tests/zones/pacific/tarawa.js index 89246cef9..9f8931a7b 100644 --- a/tests/zones/pacific/tarawa.js +++ b/tests/zones/pacific/tarawa.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Tarawa"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Tarawa", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Tarawa", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Tarawa", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Tarawa", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Tarawa", [ ["1900-12-31T12:27:55+00:00", "23:59:59", "LMT", -41524 / 60], diff --git a/tests/zones/pacific/wake.js b/tests/zones/pacific/wake.js index 9d562c3c1..3da8e1432 100644 --- a/tests/zones/pacific/wake.js +++ b/tests/zones/pacific/wake.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Wake"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Wake", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Wake", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Wake", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Wake", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Wake", [ ["1900-12-31T12:27:55+00:00", "23:59:59", "LMT", -41524 / 60], diff --git a/tests/zones/pacific/wallis.js b/tests/zones/pacific/wallis.js index 9ff445446..32429bdbf 100644 --- a/tests/zones/pacific/wallis.js +++ b/tests/zones/pacific/wallis.js @@ -4,9 +4,9 @@ var helpers = require("../../helpers/helpers"); exports["Pacific/Wallis"] = { - "guess:by:offset" : helpers.makeTestGuess("Pacific/Wallis", { offset: true, expect: "Asia/Kamchatka" }), + "guess:by:offset" : helpers.makeTestGuess("Pacific/Wallis", { offset: true, expect: "Pacific/Fiji" }), - "guess:by:abbr" : helpers.makeTestGuess("Pacific/Wallis", { abbr: true, expect: "Asia/Kamchatka" }), + "guess:by:abbr" : helpers.makeTestGuess("Pacific/Wallis", { abbr: true, expect: "Pacific/Fiji" }), "1900" : helpers.makeTestYear("Pacific/Wallis", [ ["1900-12-31T12:27:55+00:00", "23:59:59", "LMT", -41524 / 60],