mirror of https://github.com/tc39/test262.git
Fix Intl.NumberFormat roundingPriority test to reflect default values for min/max digits (#3506)
This commit is contained in:
parent
997888324e
commit
0a48029333
|
@ -14,15 +14,15 @@ var locales = [
|
||||||
];
|
];
|
||||||
var numberingSystems = ['arab', 'latn', 'thai', 'hanidec'];
|
var numberingSystems = ['arab', 'latn', 'thai', 'hanidec'];
|
||||||
|
|
||||||
// minimumSignificantDigits is less precise
|
// maximumSignificantDigits defaults to 21, beating maximumFractionDigits, which defaults to 3
|
||||||
testNumberFormat(
|
testNumberFormat(
|
||||||
locales,
|
locales,
|
||||||
numberingSystems,
|
numberingSystems,
|
||||||
{useGrouping: false, roundingPriority: 'morePrecision', minimumSignificantDigits: 2, minimumFractionDigits: 2},
|
{useGrouping: false, roundingPriority: 'morePrecision', minimumSignificantDigits: 2, minimumFractionDigits: 2},
|
||||||
{'1': '1.00'}
|
{'1': '1.0'}
|
||||||
);
|
);
|
||||||
|
|
||||||
// minimumSignificantDigits is more precise
|
// maximumSignificantDigits defaults to 21, beating maximumFractionDigits, which defaults to 3
|
||||||
testNumberFormat(
|
testNumberFormat(
|
||||||
locales,
|
locales,
|
||||||
numberingSystems,
|
numberingSystems,
|
||||||
|
|
Loading…
Reference in New Issue