Debian Codegraph @

js/src/tests/test262/intl402/Collator/usage-de.js

raw
1 // Copyright 2018 Igalia, S.L. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-initializecollator
6 description: Checks the behavior of search and sort in German.
7 includes: [compareArray.js]
8 locale: [de]
9 ---*/
10
11 assert.compareArray(["AE", "\u00C4"].sort(new Intl.Collator("de", {usage: "sort"}).compare),
12 ["\u00C4", "AE"],
13 "sort");
14 assert.compareArray(["AE", "\u00C4"].sort(new Intl.Collator("de", {usage: "search"}).compare),
15 ["AE", "\u00C4"],
16 "search");
17
18 reportCompare(0, 0);