Correct pl-pl*.js test for minimumGroupingDigits

pl has minimumGroupingDigits{"2"} in locale data according to CLDR
therefore there should be no \u00a0 between 1 and 000

Close https://github.com/tc39/test262/issues/2589
This commit is contained in:
Frank Yung-Fong Tang 2020-04-22 13:45:55 -07:00 committed by Rick Waldron
parent 39ed5d9d68
commit 79c1818a68
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ const rtf = new Intl.RelativeTimeFormat("pl-PL", {
assert.sameValue(typeof rtf.format, "function", "format should be supported");
for (const [unitArgument, expected] of Object.entries(units)) {
assert.sameValue(rtf.format(1000, unitArgument), `za 1\u00a0000 ${expected.many}`);
assert.sameValue(rtf.format(1000, unitArgument), `za 1000 ${expected.many}`);
assert.sameValue(rtf.format(10, unitArgument), `za 10 ${expected.many}`);
assert.sameValue(rtf.format(2, unitArgument), `za 2 ${expected.few}`);
assert.sameValue(rtf.format(1, unitArgument), `za 1 ${expected.one}`);
@ -65,5 +65,5 @@ for (const [unitArgument, expected] of Object.entries(units)) {
assert.sameValue(rtf.format(-1, unitArgument), `1 ${expected.one} temu`);
assert.sameValue(rtf.format(-2, unitArgument), `2 ${expected.few} temu`);
assert.sameValue(rtf.format(-10, unitArgument), `10 ${expected.many} temu`);
assert.sameValue(rtf.format(-1000, unitArgument), `1\u00a0000 ${expected.many} temu`);
assert.sameValue(rtf.format(-1000, unitArgument), `1000 ${expected.many} temu`);
}