Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Latin.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=Latin`
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 0x0000AA,
19 0x0000B7,
20 0x0000BA,
21 0x0002BC,
22 0x0002C7,
23 0x0002CD,
24 0x0002D7,
25 0x0002D9,
26 0x000313,
27 0x000320,
28 0x000358,
29 0x00035E,
30 0x0010FB,
31 0x001DF8,
32 0x00202F,
33 0x002071,
34 0x00207F,
35 0x0020F0,
36 0x002132,
37 0x00214E,
38 0x002E17,
39 0x00A7D3,
40 0x00A92E
41 ],
42 ranges: [
43 [0x000041, 0x00005A],
44 [0x000061, 0x00007A],
45 [0x0000C0, 0x0000D6],
46 [0x0000D8, 0x0000F6],
47 [0x0000F8, 0x0002B8],
48 [0x0002C9, 0x0002CB],
49 [0x0002E0, 0x0002E4],
50 [0x000300, 0x00030E],
51 [0x000310, 0x000311],
52 [0x000323, 0x000325],
53 [0x00032D, 0x00032E],
54 [0x000330, 0x000331],
55 [0x000363, 0x00036F],
56 [0x000485, 0x000486],
57 [0x000951, 0x000952],
58 [0x001D00, 0x001D25],
59 [0x001D2C, 0x001D5C],
60 [0x001D62, 0x001D65],
61 [0x001D6B, 0x001D77],
62 [0x001D79, 0x001DBE],
63 [0x001E00, 0x001EFF],
64 [0x002090, 0x00209C],
65 [0x00212A, 0x00212B],
66 [0x002160, 0x002188],
67 [0x002C60, 0x002C7F],
68 [0x00A700, 0x00A707],
69 [0x00A722, 0x00A787],
70 [0x00A78B, 0x00A7CD],
71 [0x00A7D0, 0x00A7D1],
72 [0x00A7D5, 0x00A7DC],
73 [0x00A7F2, 0x00A7FF],
74 [0x00AB30, 0x00AB5A],
75 [0x00AB5C, 0x00AB64],
76 [0x00AB66, 0x00AB69],
77 [0x00FB00, 0x00FB06],
78 [0x00FF21, 0x00FF3A],
79 [0x00FF41, 0x00FF5A],
80 [0x010780, 0x010785],
81 [0x010787, 0x0107B0],
82 [0x0107B2, 0x0107BA],
83 [0x01DF00, 0x01DF1E],
84 [0x01DF25, 0x01DF2A]
85 ]
86 });
87 testPropertyEscapes(
88 /^\p{Script_Extensions=Latin}+$/u,
89 matchSymbols,
90 "\\p{Script_Extensions=Latin}"
91 );
92 testPropertyEscapes(
93 /^\p{Script_Extensions=Latn}+$/u,
94 matchSymbols,
95 "\\p{Script_Extensions=Latn}"
96 );
97 testPropertyEscapes(
98 /^\p{scx=Latin}+$/u,
99 matchSymbols,
100 "\\p{scx=Latin}"
101 );
102 testPropertyEscapes(
103 /^\p{scx=Latn}+$/u,
104 matchSymbols,
105 "\\p{scx=Latn}"
106 );
107
108 const nonMatchSymbols = buildString({
109 loneCodePoints: [
110 0x0000D7,
111 0x0000F7,
112 0x0002C8,
113 0x0002CC,
114 0x0002D8,
115 0x00030F,
116 0x000312,
117 0x00032F,
118 0x001D78,
119 0x00A7D2,
120 0x00A7D4,
121 0x00AB5B,
122 0x00AB65,
123 0x010786,
124 0x0107B1
125 ],
126 ranges: [
127 [0x00DC00, 0x00DFFF],
128 [0x000000, 0x000040],
129 [0x00005B, 0x000060],
130 [0x00007B, 0x0000A9],
131 [0x0000AB, 0x0000B6],
132 [0x0000B8, 0x0000B9],
133 [0x0000BB, 0x0000BF],
134 [0x0002B9, 0x0002BB],
135 [0x0002BD, 0x0002C6],
136 [0x0002CE, 0x0002D6],
137 [0x0002DA, 0x0002DF],
138 [0x0002E5, 0x0002FF],
139 [0x000314, 0x00031F],
140 [0x000321, 0x000322],
141 [0x000326, 0x00032C],
142 [0x000332, 0x000357],
143 [0x000359, 0x00035D],
144 [0x00035F, 0x000362],
145 [0x000370, 0x000484],
146 [0x000487, 0x000950],
147 [0x000953, 0x0010FA],
148 [0x0010FC, 0x001CFF],
149 [0x001D26, 0x001D2B],
150 [0x001D5D, 0x001D61],
151 [0x001D66, 0x001D6A],
152 [0x001DBF, 0x001DF7],
153 [0x001DF9, 0x001DFF],
154 [0x001F00, 0x00202E],
155 [0x002030, 0x002070],
156 [0x002072, 0x00207E],
157 [0x002080, 0x00208F],
158 [0x00209D, 0x0020EF],
159 [0x0020F1, 0x002129],
160 [0x00212C, 0x002131],
161 [0x002133, 0x00214D],
162 [0x00214F, 0x00215F],
163 [0x002189, 0x002C5F],
164 [0x002C80, 0x002E16],
165 [0x002E18, 0x00A6FF],
166 [0x00A708, 0x00A721],
167 [0x00A788, 0x00A78A],
168 [0x00A7CE, 0x00A7CF],
169 [0x00A7DD, 0x00A7F1],
170 [0x00A800, 0x00A92D],
171 [0x00A92F, 0x00AB2F],
172 [0x00AB6A, 0x00DBFF],
173 [0x00E000, 0x00FAFF],
174 [0x00FB07, 0x00FF20],
175 [0x00FF3B, 0x00FF40],
176 [0x00FF5B, 0x01077F],
177 [0x0107BB, 0x01DEFF],
178 [0x01DF1F, 0x01DF24],
179 [0x01DF2B, 0x10FFFF]
180 ]
181 });
182 testPropertyEscapes(
183 /^\P{Script_Extensions=Latin}+$/u,
184 nonMatchSymbols,
185 "\\P{Script_Extensions=Latin}"
186 );
187 testPropertyEscapes(
188 /^\P{Script_Extensions=Latn}+$/u,
189 nonMatchSymbols,
190 "\\P{Script_Extensions=Latn}"
191 );
192 testPropertyEscapes(
193 /^\P{scx=Latin}+$/u,
194 nonMatchSymbols,
195 "\\P{scx=Latin}"
196 );
197 testPropertyEscapes(
198 /^\P{scx=Latn}+$/u,
199 nonMatchSymbols,
200 "\\P{scx=Latn}"
201 );
202
203 reportCompare(0, 0);