mirror of https://github.com/tc39/test262.git
Update test to actually check properties
This commit is contained in:
parent
af0f53bb40
commit
cd55e30938
|
@ -13,7 +13,13 @@ info: |
|
||||||
a. Let O be CreateArrayFromList(« locales »).
|
a. Let O be CreateArrayFromList(« locales »).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const actual = Intl.NumberFormat('en-US');
|
const actual = Intl.NumberFormat('en-US').resolvedOptions();
|
||||||
const expected = Intl.NumberFormat(['en-US']);
|
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);
|
||||||
|
|
Loading…
Reference in New Issue