mirror of https://github.com/tc39/test262.git
Add test for ECMA402 PR833 Allow locale based ignorePunctuation default (#3922)
* Add test for ECMA402 833 https://github.com/tc39/ecma402/pull/833 * Update test/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-default.js Co-authored-by: André Bargull <andre.bargull@gmail.com> * Update test/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-default.js Co-authored-by: André Bargull <andre.bargull@gmail.com> --------- Co-authored-by: André Bargull <andre.bargull@gmail.com>
This commit is contained in:
parent
c2815ec090
commit
c3a326ace8
16
test/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-default.js
vendored
Normal file
16
test/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-default.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
// 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 come from locale default instead of false.
|
||||||
|
locale: [en, th, ja]
|
||||||
|
---*/
|
||||||
|
assert.sameValue(
|
||||||
|
(new Intl.Collator("en")).resolvedOptions().ignorePunctuation,
|
||||||
|
false, "English default ignorePunctuation to false");
|
||||||
|
assert.sameValue(
|
||||||
|
(new Intl.Collator("th")).resolvedOptions().ignorePunctuation,
|
||||||
|
true, "Thai default ignorePunctuation to true");
|
||||||
|
assert.sameValue(
|
||||||
|
(new Intl.Collator("ja")).resolvedOptions().ignorePunctuation,
|
||||||
|
false, "Japanese default ignorePunctuation to false");
|
Loading…
Reference in New Issue