diff options
Diffstat (limited to 'js/src/tests/test262/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-not-default.js')
-rw-r--r-- | js/src/tests/test262/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-not-default.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-not-default.js b/js/src/tests/test262/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-not-default.js new file mode 100644 index 0000000000..ff77cf814e --- /dev/null +++ b/js/src/tests/test262/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-not-default.js @@ -0,0 +1,17 @@ +// Copyright 2023 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-initializecollator +description: resolved ignorePunctuation is the same as the one specified in option bag. +locale: [en, th, ja] +---*/ +['en', 'th', 'ja'].forEach((locale) => { + [true, false].forEach((ignorePunctuation) => { + assert.sameValue( + (new Intl.Collator(locale, {ignorePunctuation})) + .resolvedOptions().ignorePunctuation, + ignorePunctuation); + }); +}); + +reportCompare(0, 0); |