Skip to content

Commit

Permalink
Correct pl-pl*.js test for minimumGroupingDigits
Browse files Browse the repository at this point in the history
pl has minimumGroupingDigits{"2"} in locale data according to CLDR
therefore there should be no \u00a0 between 1 and 000

Close #2589
  • Loading branch information
FrankYFTang authored and rwaldron committed Apr 25, 2020
1 parent 39ed5d9 commit 79c1818
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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`);
}

0 comments on commit 79c1818

Please sign in to comment.