After the merges: four combine-routines / custom-exercise strings in all 14 packs, the de-CH number test accepts either Swiss apostrophe (ICU versions differ), changelog for the merged PRs and MRs
This commit is contained in:
1 parent
020b7f4477
commit
631d01b1b2
16 files changed
+89
-3
No files matched your search
@@ -70,7 +70,8 @@ describe('de-CH as a selectable language', () => {
|
||||
expect(LANGS['de-CH']).toBeTruthy()
|
||||
expect(DATE_LOCALES['de-CH']).toBe('de-CH')
|
||||
// The reason de-CH is worth having at all: German formatting gets the weights wrong here.
|
||||
expect(new Intl.NumberFormat(DATE_LOCALES['de-CH']).format(1234.5)).toBe("1'234.5")
|
||||
// ICU writes the Swiss group separator as ' or ’ depending on its version; both are Swiss.
|
||||
expect(new Intl.NumberFormat(DATE_LOCALES['de-CH']).format(1234.5)).toMatch(/^1['’]234\.5$/)
|
||||
expect(new Intl.NumberFormat(DATE_LOCALES.de).format(1234.5)).toBe('1.234,5')
|
||||
})
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ describe('Brazilian Portuguese locale', () => {
|
||||
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')
|
||||
|
||||
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(642)
|
||||
expect(inherited).toHaveLength(643)
|
||||
expect(inherited).toHaveLength(647)
|
||||
// If this fails, review the changed keys and wording before accepting a new hash. From
|
||||
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('f9f572ecbbdd79fbc62a1a7804224f219d23e07810121f0160e594b4518d09ac')
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('185cca3dfbc438a4a2177956d1d18da2bbdc907281c5eb4c858ba34afaf9f38e')
|
||||
})
|
||||
|
||||
test('does not leak European Portuguese UI terms', () => {
|
||||
|
||||
Reference in new issue
Block a user