Fix syntax in `supportedLocalesOf-unicode-extensions-ignored` test (#3035)

This commit is contained in:
Nicolò Ribaudo 2021-07-12 19:13:56 +02:00 committed by GitHub
parent a6a895db12
commit 356afd79a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ testWithIntlConstructors(function (Constructor) {
var validExtension = "-u-co-phonebk-nu-latn";
var invalidExtension = "-u-nu-invalid";
var supported1 = Constructor.supportedLocalesOf([locale], opt);
var supported2 = Constructor.supportedLocalesOf([locale + validExtension], opt));
var supported3 = Constructor.supportedLocalesOf([locale + invalidExtension], opt));
var supported2 = Constructor.supportedLocalesOf([locale + validExtension], opt);
var supported3 = Constructor.supportedLocalesOf([locale + invalidExtension], opt);
if (supported1.length === 1) {
assert.sameValue(supported2.length, 1, "#1.1: Presence of Unicode locale extension sequence affects whether locale " + locale + " is considered supported with matcher " + matcher + ".");
assert.sameValue(supported3.length, 1, "#1.2: Presence of Unicode locale extension sequence affects whether locale " + locale + " is considered supported with matcher " + matcher + ".");