correct style-short.js

This commit is contained in:
Frank Yung-Fong Tang 2020-04-22 13:48:40 -07:00 committed by Rick Waldron
parent 81de828140
commit 17fe569a5e
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,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}`);
@ -56,5 +56,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`);
}