correct style-short.js

This commit is contained in:
Frank Yung-Fong Tang 2020-04-22 13:55:31 -07:00 committed by Rick Waldron
parent df861e4bbc
commit c3e980addf
1 changed files with 2 additions and 6 deletions

View File

@ -63,9 +63,7 @@ assert.sameValue(typeof rtf.formatToParts, "function", "formatToParts should be
for (const [unitArgument, expected] of Object.entries(units)) {
verifyFormatParts(rtf.formatToParts(1000, unitArgument), [
{ "type": "literal", "value": "za " },
{ "type": "integer", "value": "1", "unit": unitArgument },
{ "type": "group", "value": "\u00a0", "unit": unitArgument },
{ "type": "integer", "value": "000", "unit": unitArgument },
{ "type": "integer", "value": "1000", "unit": unitArgument },
{ "type": "literal", "value": ` ${expected.many}` },
], `formatToParts(1000, ${unitArgument})`);
@ -114,9 +112,7 @@ for (const [unitArgument, expected] of Object.entries(units)) {
], `formatToParts(-10, ${unitArgument})`);
verifyFormatParts(rtf.formatToParts(-1000, unitArgument), [
{ "type": "integer", "value": "1", "unit": unitArgument },
{ "type": "group", "value": "\u00a0", "unit": unitArgument },
{ "type": "integer", "value": "000", "unit": unitArgument },
{ "type": "integer", "value": "1000", "unit": unitArgument },
{ "type": "literal", "value": ` ${expected.many} temu` },
], `formatToParts(-1000, ${unitArgument})`);