Fix Intl.NumberFormat roundingPriority test to reflect default values for min/max digits (#3506)

This commit is contained in:
Shane F. Carr 2022-05-04 13:31:56 -05:00 committed by GitHub
parent 997888324e
commit 0a48029333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -14,15 +14,15 @@ var locales = [
];
var numberingSystems = ['arab', 'latn', 'thai', 'hanidec'];
// minimumSignificantDigits is less precise
// maximumSignificantDigits defaults to 21, beating maximumFractionDigits, which defaults to 3
testNumberFormat(
locales,
numberingSystems,
{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(
locales,
numberingSystems,