Skip to content

Commit

Permalink
Add test for ECMA402 833
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Sep 13, 2023
1 parent 1db9a49 commit 9adbb9a
Showing 1 changed file with 16 additions and 0 deletions.
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");

0 comments on commit 9adbb9a

Please sign in to comment.