Skip to content

Fix more 402 Temporal tests broken by ICU72/CLDR42#3762

Merged
ptomato merged 1 commit into
tc39:mainfrom
justingrant:more-node19
Jan 10, 2023
Merged

Fix more 402 Temporal tests broken by ICU72/CLDR42#3762
ptomato merged 1 commit into
tc39:mainfrom
justingrant:more-node19

Conversation

@justingrant

Copy link
Copy Markdown
Contributor

Fixes 4 more Temporal-related tests that break in ICU 72 / CLDR 42.

Follows up on #3676 (comment) and #3751.

Fixes 4 more Temporal-related tests that break in ICU 72 / CLDR 42.

Follows up on tc39#3676 and
tc39#3751.
justingrant added a commit to justingrant/proposal-temporal that referenced this pull request Jan 10, 2023
Updates Test262 to include tc39/test262#3762.

Also adds additional tests to our codecov test run.
justingrant added a commit to justingrant/proposal-temporal that referenced this pull request Jan 10, 2023
* Updates GH actions to latest versions
* Uses Node19 for all actions and tests
* Updates @js-temporal/temporal-test262-runner lib to run more
  tests that were missed by the previous runner version
* Updates Test262 to include tc39/test262#3762
  so that additional tests run by the new runner will pass.
* Adds those newly-run, newly-passing tests to the codecov test script.
@justingrant justingrant marked this pull request as ready for review January 10, 2023 07:26
@justingrant justingrant requested a review from a team as a code owner January 10, 2023 07:26

@ptomato ptomato left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching and fixing these!

I'll merge this right away in order to fix the breakage, but I think we can probably improve these tests more in the future. I'll write down my notes here so I can find them later:

  • The point of the tests is that the formatter gives the same date as the PlainDateTime despite the formatter being constructed with a time zone with a large offset.
  • Probably it'd be sufficient to ensure that the correct numbers were in the string.
  • For formatToParts/formatRangeToParts, we can verify this directly.
  • For format/formatRange, maybe asserting something like result.includes('8/4/2021') or comparing with a regexp /8[^0-9]+4[^0-9]+2021/

@ptomato ptomato merged commit 2c599b0 into tc39:main Jan 10, 2023
justingrant added a commit to justingrant/proposal-temporal that referenced this pull request Jan 10, 2023
* Updates GH actions to latest versions
* Uses Node19 for all actions and tests
* Updates @js-temporal/temporal-test262-runner lib to run more
  tests that were missed by the previous runner version
* Updates Test262 to include tc39/test262#3762
  so that additional tests run by the new runner will pass.
* Adds those newly-run, newly-passing tests to the codecov test script.
justingrant added a commit to justingrant/proposal-temporal that referenced this pull request Jan 10, 2023
* Updates GH actions to latest versions
* Uses Node19 for all actions and tests
* Updates @js-temporal/temporal-test262-runner lib
* Adds all DateTimeFormat Test262 tests (because the Temporal polyfill
  replaces that class) to the CI codecov script.
* Updates Test262 to include tc39/test262#3762
  so that additional DateTimeFormat tests will pass.
justingrant added a commit to justingrant/test262 that referenced this pull request Jan 10, 2023
Following up on tc39#3751 and tc39#3762, this commit makes a few tests
work on both CLDR 42 and CLDR 41. Previously these tests were
tied to a specific CLDR 42 format.
justingrant added a commit to justingrant/proposal-temporal that referenced this pull request Jan 11, 2023
* Updates GH actions to latest versions
* Uses Node19 for all actions and tests
* Updates @js-temporal/temporal-test262-runner lib
* Includes a few Temporal-related DateTimeFormat Test262 tests
  to the CI codecov script.
* Updates Test262 to include tc39/test262#3762
  so that additional DateTimeFormat tests will pass.
justingrant added a commit to tc39/proposal-temporal that referenced this pull request Jan 11, 2023
* Updates GH actions to latest versions
* Uses Node19 for all actions and tests
* Updates @js-temporal/temporal-test262-runner lib
* Includes a few Temporal-related DateTimeFormat Test262 tests
  to the CI codecov script.
* Updates Test262 to include tc39/test262#3762
  so that additional DateTimeFormat tests will pass.
Ms2ger pushed a commit that referenced this pull request Jan 11, 2023
Following up on #3751 and #3762, this commit makes a few tests
work on both CLDR 42 and CLDR 41. Previously these tests were
tied to a specific CLDR 42 format.
ptomato pushed a commit to ptomato/test262 that referenced this pull request Jan 19, 2023
Following up on tc39#3751 and tc39#3762, this commit makes a few tests
work on both CLDR 42 and CLDR 41. Previously these tests were
tied to a specific CLDR 42 format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants