mirror of https://github.com/tc39/test262.git
Fix format-rounding-priority-less-precision.js
1. remove extra "Digits" in the spelling 2. fix the setting of minimumSignificantDigits is more precise since both will produce "1.00" w/o change
This commit is contained in:
parent
a665b5f3a2
commit
fe9f29e4a8
|
@ -18,7 +18,7 @@ var numberingSystems = ['arab', 'latn', 'thai', 'hanidec'];
|
|||
testNumberFormat(
|
||||
locales,
|
||||
numberingSystems,
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', minimumSignificantDigits: 2, minimumFractionDigitsDigits: 2},
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', minimumSignificantDigits: 2, minimumFractionDigits: 2},
|
||||
{'1': '1.0'}
|
||||
);
|
||||
|
||||
|
@ -26,7 +26,7 @@ testNumberFormat(
|
|||
testNumberFormat(
|
||||
locales,
|
||||
numberingSystems,
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', minimumSignificantDigits: 3, minimumFractionDigitsDigits: 2},
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', minimumSignificantDigits: 3, minimumFractionDigits: 1},
|
||||
{'1': '1.0'}
|
||||
);
|
||||
|
||||
|
@ -34,7 +34,7 @@ testNumberFormat(
|
|||
testNumberFormat(
|
||||
locales,
|
||||
numberingSystems,
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', maximumSignificantDigits: 2, maximumFractionDigitsDigits: 2},
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', maximumSignificantDigits: 2, maximumFractionDigits: 2},
|
||||
{'1.23': '1.2'}
|
||||
);
|
||||
|
||||
|
@ -42,6 +42,6 @@ testNumberFormat(
|
|||
testNumberFormat(
|
||||
locales,
|
||||
numberingSystems,
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', maximumSignificantDigits: 3, maximumFractionDigitsDigits: 1},
|
||||
{useGrouping: false, roundingPriority: 'lessPrecision', maximumSignificantDigits: 3, maximumFractionDigits: 1},
|
||||
{'1.234': '1.2'}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue