Update test to actually check properties

This commit is contained in:
Ujjwal Sharma 2018-10-03 00:46:35 +05:30 committed by Rick Waldron
parent af0f53bb40
commit cd55e30938
1 changed files with 9 additions and 3 deletions

View File

@ -13,7 +13,13 @@ info: |
a. Let O be CreateArrayFromList(« locales »).
---*/
const actual = Intl.NumberFormat('en-US');
const expected = Intl.NumberFormat(['en-US']);
const actual = Intl.NumberFormat('en-US').resolvedOptions();
const expected = Intl.NumberFormat(['en-US']).resolvedOptions();
assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());
assert.sameValue(actual.locale, expected.locale);
assert.sameValue(actual.minimumIntegerDigits, expected.minimumIntegerDigits);
assert.sameValue(actual.minimumFractionDigits, expected.minimumFractionDigits);
assert.sameValue(actual.maximumFractionDigits, expected.maximumFractionDigits);
assert.sameValue(actual.numberingSystem, expected.numberingSystem);
assert.sameValue(actual.style, expected.style);
assert.sameValue(actual.useGrouping, expected.useGrouping);