forked from tc39/test262
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1db9a49
commit 9adbb9a
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
test/intl402/Collator/prototype/resolvedOptions/ignorePunctuation-default.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, "English default ignorePunctuation to true"); | ||
assert.sameValue( | ||
(new Intl.Collator("ja")).resolvedOptions().ignorePunctuation, | ||
false, "English default ignorePunctuation to false"); |