Skip to content

test: relax yue-Hant day-period assertions#120

Open
fgc- wants to merge 1 commit intoggaabe:mainfrom
fgc-:fix/totext-i18n-test-stability
Open

test: relax yue-Hant day-period assertions#120
fgc- wants to merge 1 commit intoggaabe:mainfrom
fgc-:fix/totext-i18n-test-stability

Conversation

@fgc-
Copy link
Copy Markdown
Contributor

@fgc- fgc- commented Apr 2, 2026

Summary

  • relax yue-Hant expectations in the toText i18n tests
  • accept both 上晝 / 下晝 and 上午 / 下午 day-period variants

Context

Intl.DateTimeFormat can produce different Cantonese day-period wording depending on the runtime ICU data. The previous assertions were too strict and caused test failures on main with Node 24.12.0.

Verification

  • npm test

@fgc- fgc- force-pushed the fix/totext-i18n-test-stability branch from d310b8e to ef8b8e0 Compare April 2, 2026 16:01
@fgc- fgc- force-pushed the fix/totext-i18n-test-stability branch from ef8b8e0 to 99ed35c Compare April 7, 2026 07:19
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.

1 participant