Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Inherited.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=Inherited`
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 0x000670,
19 0x001CED,
20 0x001CF4,
21 0x0101FD,
22 0x0102E0,
23 0x01133B
24 ],
25 ranges: [
26 [0x000300, 0x00036F],
27 [0x000485, 0x000486],
28 [0x00064B, 0x000655],
29 [0x000951, 0x000954],
30 [0x001AB0, 0x001ACE],
31 [0x001CD0, 0x001CD2],
32 [0x001CD4, 0x001CE0],
33 [0x001CE2, 0x001CE8],
34 [0x001CF8, 0x001CF9],
35 [0x001DC0, 0x001DFF],
36 [0x00200C, 0x00200D],
37 [0x0020D0, 0x0020F0],
38 [0x00302A, 0x00302D],
39 [0x003099, 0x00309A],
40 [0x00FE00, 0x00FE0F],
41 [0x00FE20, 0x00FE2D],
42 [0x01CF00, 0x01CF2D],
43 [0x01CF30, 0x01CF46],
44 [0x01D167, 0x01D169],
45 [0x01D17B, 0x01D182],
46 [0x01D185, 0x01D18B],
47 [0x01D1AA, 0x01D1AD],
48 [0x0E0100, 0x0E01EF]
49 ]
50 });
51 testPropertyEscapes(
52 /^\p{Script=Inherited}+$/u,
53 matchSymbols,
54 "\\p{Script=Inherited}"
55 );
56 testPropertyEscapes(
57 /^\p{Script=Zinh}+$/u,
58 matchSymbols,
59 "\\p{Script=Zinh}"
60 );
61 testPropertyEscapes(
62 /^\p{Script=Qaai}+$/u,
63 matchSymbols,
64 "\\p{Script=Qaai}"
65 );
66 testPropertyEscapes(
67 /^\p{sc=Inherited}+$/u,
68 matchSymbols,
69 "\\p{sc=Inherited}"
70 );
71 testPropertyEscapes(
72 /^\p{sc=Zinh}+$/u,
73 matchSymbols,
74 "\\p{sc=Zinh}"
75 );
76 testPropertyEscapes(
77 /^\p{sc=Qaai}+$/u,
78 matchSymbols,
79 "\\p{sc=Qaai}"
80 );
81
82 const nonMatchSymbols = buildString({
83 loneCodePoints: [
84 0x001CD3,
85 0x001CE1
86 ],
87 ranges: [
88 [0x00DC00, 0x00DFFF],
89 [0x000000, 0x0002FF],
90 [0x000370, 0x000484],
91 [0x000487, 0x00064A],
92 [0x000656, 0x00066F],
93 [0x000671, 0x000950],
94 [0x000955, 0x001AAF],
95 [0x001ACF, 0x001CCF],
96 [0x001CE9, 0x001CEC],
97 [0x001CEE, 0x001CF3],
98 [0x001CF5, 0x001CF7],
99 [0x001CFA, 0x001DBF],
100 [0x001E00, 0x00200B],
101 [0x00200E, 0x0020CF],
102 [0x0020F1, 0x003029],
103 [0x00302E, 0x003098],
104 [0x00309B, 0x00DBFF],
105 [0x00E000, 0x00FDFF],
106 [0x00FE10, 0x00FE1F],
107 [0x00FE2E, 0x0101FC],
108 [0x0101FE, 0x0102DF],
109 [0x0102E1, 0x01133A],
110 [0x01133C, 0x01CEFF],
111 [0x01CF2E, 0x01CF2F],
112 [0x01CF47, 0x01D166],
113 [0x01D16A, 0x01D17A],
114 [0x01D183, 0x01D184],
115 [0x01D18C, 0x01D1A9],
116 [0x01D1AE, 0x0E00FF],
117 [0x0E01F0, 0x10FFFF]
118 ]
119 });
120 testPropertyEscapes(
121 /^\P{Script=Inherited}+$/u,
122 nonMatchSymbols,
123 "\\P{Script=Inherited}"
124 );
125 testPropertyEscapes(
126 /^\P{Script=Zinh}+$/u,
127 nonMatchSymbols,
128 "\\P{Script=Zinh}"
129 );
130 testPropertyEscapes(
131 /^\P{Script=Qaai}+$/u,
132 nonMatchSymbols,
133 "\\P{Script=Qaai}"
134 );
135 testPropertyEscapes(
136 /^\P{sc=Inherited}+$/u,
137 nonMatchSymbols,
138 "\\P{sc=Inherited}"
139 );
140 testPropertyEscapes(
141 /^\P{sc=Zinh}+$/u,
142 nonMatchSymbols,
143 "\\P{sc=Zinh}"
144 );
145 testPropertyEscapes(
146 /^\P{sc=Qaai}+$/u,
147 nonMatchSymbols,
148 "\\P{sc=Qaai}"
149 );
150
151 reportCompare(0, 0);