style-long.js

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

View File

@ -74,9 +74,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})`);
@ -125,9 +123,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})`);