Intl.Locale: Expect boolean values from the numeric getter.

The spec changed in <https://github.com/tc39/proposal-intl-locale/pull/59>.
This commit is contained in:
Ms2ger 2018-08-21 11:47:11 +02:00 committed by Rick Waldron
parent 5b0f7e19db
commit 584b651edf
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ if ("caseFirst" in loc) {
assert.sameValue(loc.caseFirst, "true"); assert.sameValue(loc.caseFirst, "true");
} }
if ("numeric" in loc) { if ("numeric" in loc) {
assert.sameValue(loc.numeric, "false"); assert.sameValue(loc.numeric, false);
} }
assert.sameValue(loc.numberingSystem, "latn"); assert.sameValue(loc.numberingSystem, "latn");
@ -92,7 +92,7 @@ if ("caseFirst" in loc) {
assert.sameValue(loc.caseFirst, "false"); assert.sameValue(loc.caseFirst, "false");
} }
if ("numeric" in loc) { if ("numeric" in loc) {
assert.sameValue(loc.numeric, "true"); assert.sameValue(loc.numeric, true);
} }
assert.sameValue(loc.numberingSystem, "jpanfin"); assert.sameValue(loc.numberingSystem, "jpanfin");
@ -117,6 +117,6 @@ if ("caseFirst" in loc) {
assert.sameValue(loc.caseFirst, "true"); assert.sameValue(loc.caseFirst, "true");
} }
if ("numeric" in loc) { if ("numeric" in loc) {
assert.sameValue(loc.numeric, "false"); assert.sameValue(loc.numeric, false);
} }
assert.sameValue(loc.numberingSystem, "latn"); assert.sameValue(loc.numberingSystem, "latn");