Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js

raw
1 // Copyright 2024 Mathias Bynens. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Mathias Bynens
6 description: >
7 Unicode property escapes for `Script_Extensions=Cherokee`
8 info: |
9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10 Unicode v16.0.0
11 esid: sec-static-semantics-unicodematchproperty-p
12 features: [regexp-unicode-property-escapes]
13 includes: [regExpUtils.js]
14 ---*/
15
16 const matchSymbols = buildString({
17 loneCodePoints: [
18 0x000304
19 ],
20 ranges: [
21 [0x000300, 0x000302],
22 [0x00030B, 0x00030C],
23 [0x000323, 0x000324],
24 [0x000330, 0x000331],
25 [0x0013A0, 0x0013F5],
26 [0x0013F8, 0x0013FD],
27 [0x00AB70, 0x00ABBF]
28 ]
29 });
30 testPropertyEscapes(
31 /^\p{Script_Extensions=Cherokee}+$/u,
32 matchSymbols,
33 "\\p{Script_Extensions=Cherokee}"
34 );
35 testPropertyEscapes(
36 /^\p{Script_Extensions=Cher}+$/u,
37 matchSymbols,
38 "\\p{Script_Extensions=Cher}"
39 );
40 testPropertyEscapes(
41 /^\p{scx=Cherokee}+$/u,
42 matchSymbols,
43 "\\p{scx=Cherokee}"
44 );
45 testPropertyEscapes(
46 /^\p{scx=Cher}+$/u,
47 matchSymbols,
48 "\\p{scx=Cher}"
49 );
50
51 const nonMatchSymbols = buildString({
52 loneCodePoints: [
53 0x000303
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x0002FF],
58 [0x000305, 0x00030A],
59 [0x00030D, 0x000322],
60 [0x000325, 0x00032F],
61 [0x000332, 0x00139F],
62 [0x0013F6, 0x0013F7],
63 [0x0013FE, 0x00AB6F],
64 [0x00ABC0, 0x00DBFF],
65 [0x00E000, 0x10FFFF]
66 ]
67 });
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Cherokee}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Cherokee}"
72 );
73 testPropertyEscapes(
74 /^\P{Script_Extensions=Cher}+$/u,
75 nonMatchSymbols,
76 "\\P{Script_Extensions=Cher}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Cherokee}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Cherokee}"
82 );
83 testPropertyEscapes(
84 /^\P{scx=Cher}+$/u,
85 nonMatchSymbols,
86 "\\P{scx=Cher}"
87 );
88
89 reportCompare(0, 0);