Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Extended_Pictographic.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 `Extended_Pictographic`
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 0x0000A9,
19 0x0000AE,
20 0x00203C,
21 0x002049,
22 0x002122,
23 0x002139,
24 0x002328,
25 0x002388,
26 0x0023CF,
27 0x0024C2,
28 0x0025B6,
29 0x0025C0,
30 0x002714,
31 0x002716,
32 0x00271D,
33 0x002721,
34 0x002728,
35 0x002744,
36 0x002747,
37 0x00274C,
38 0x00274E,
39 0x002757,
40 0x0027A1,
41 0x0027B0,
42 0x0027BF,
43 0x002B50,
44 0x002B55,
45 0x003030,
46 0x00303D,
47 0x003297,
48 0x003299,
49 0x01F12F,
50 0x01F18E,
51 0x01F21A,
52 0x01F22F
53 ],
54 ranges: [
55 [0x002194, 0x002199],
56 [0x0021A9, 0x0021AA],
57 [0x00231A, 0x00231B],
58 [0x0023E9, 0x0023F3],
59 [0x0023F8, 0x0023FA],
60 [0x0025AA, 0x0025AB],
61 [0x0025FB, 0x0025FE],
62 [0x002600, 0x002605],
63 [0x002607, 0x002612],
64 [0x002614, 0x002685],
65 [0x002690, 0x002705],
66 [0x002708, 0x002712],
67 [0x002733, 0x002734],
68 [0x002753, 0x002755],
69 [0x002763, 0x002767],
70 [0x002795, 0x002797],
71 [0x002934, 0x002935],
72 [0x002B05, 0x002B07],
73 [0x002B1B, 0x002B1C],
74 [0x01F000, 0x01F0FF],
75 [0x01F10D, 0x01F10F],
76 [0x01F16C, 0x01F171],
77 [0x01F17E, 0x01F17F],
78 [0x01F191, 0x01F19A],
79 [0x01F1AD, 0x01F1E5],
80 [0x01F201, 0x01F20F],
81 [0x01F232, 0x01F23A],
82 [0x01F23C, 0x01F23F],
83 [0x01F249, 0x01F3FA],
84 [0x01F400, 0x01F53D],
85 [0x01F546, 0x01F64F],
86 [0x01F680, 0x01F6FF],
87 [0x01F774, 0x01F77F],
88 [0x01F7D5, 0x01F7FF],
89 [0x01F80C, 0x01F80F],
90 [0x01F848, 0x01F84F],
91 [0x01F85A, 0x01F85F],
92 [0x01F888, 0x01F88F],
93 [0x01F8AE, 0x01F8FF],
94 [0x01F90C, 0x01F93A],
95 [0x01F93C, 0x01F945],
96 [0x01F947, 0x01FAFF],
97 [0x01FC00, 0x01FFFD]
98 ]
99 });
100 testPropertyEscapes(
101 /^\p{Extended_Pictographic}+$/u,
102 matchSymbols,
103 "\\p{Extended_Pictographic}"
104 );
105 testPropertyEscapes(
106 /^\p{ExtPict}+$/u,
107 matchSymbols,
108 "\\p{ExtPict}"
109 );
110
111 const nonMatchSymbols = buildString({
112 loneCodePoints: [
113 0x0025FF,
114 0x002606,
115 0x002613,
116 0x002713,
117 0x002715,
118 0x00274D,
119 0x002756,
120 0x003298,
121 0x01F23B,
122 0x01F93B,
123 0x01F946
124 ],
125 ranges: [
126 [0x00DC00, 0x00DFFF],
127 [0x000000, 0x0000A8],
128 [0x0000AA, 0x0000AD],
129 [0x0000AF, 0x00203B],
130 [0x00203D, 0x002048],
131 [0x00204A, 0x002121],
132 [0x002123, 0x002138],
133 [0x00213A, 0x002193],
134 [0x00219A, 0x0021A8],
135 [0x0021AB, 0x002319],
136 [0x00231C, 0x002327],
137 [0x002329, 0x002387],
138 [0x002389, 0x0023CE],
139 [0x0023D0, 0x0023E8],
140 [0x0023F4, 0x0023F7],
141 [0x0023FB, 0x0024C1],
142 [0x0024C3, 0x0025A9],
143 [0x0025AC, 0x0025B5],
144 [0x0025B7, 0x0025BF],
145 [0x0025C1, 0x0025FA],
146 [0x002686, 0x00268F],
147 [0x002706, 0x002707],
148 [0x002717, 0x00271C],
149 [0x00271E, 0x002720],
150 [0x002722, 0x002727],
151 [0x002729, 0x002732],
152 [0x002735, 0x002743],
153 [0x002745, 0x002746],
154 [0x002748, 0x00274B],
155 [0x00274F, 0x002752],
156 [0x002758, 0x002762],
157 [0x002768, 0x002794],
158 [0x002798, 0x0027A0],
159 [0x0027A2, 0x0027AF],
160 [0x0027B1, 0x0027BE],
161 [0x0027C0, 0x002933],
162 [0x002936, 0x002B04],
163 [0x002B08, 0x002B1A],
164 [0x002B1D, 0x002B4F],
165 [0x002B51, 0x002B54],
166 [0x002B56, 0x00302F],
167 [0x003031, 0x00303C],
168 [0x00303E, 0x003296],
169 [0x00329A, 0x00DBFF],
170 [0x00E000, 0x01EFFF],
171 [0x01F100, 0x01F10C],
172 [0x01F110, 0x01F12E],
173 [0x01F130, 0x01F16B],
174 [0x01F172, 0x01F17D],
175 [0x01F180, 0x01F18D],
176 [0x01F18F, 0x01F190],
177 [0x01F19B, 0x01F1AC],
178 [0x01F1E6, 0x01F200],
179 [0x01F210, 0x01F219],
180 [0x01F21B, 0x01F22E],
181 [0x01F230, 0x01F231],
182 [0x01F240, 0x01F248],
183 [0x01F3FB, 0x01F3FF],
184 [0x01F53E, 0x01F545],
185 [0x01F650, 0x01F67F],
186 [0x01F700, 0x01F773],
187 [0x01F780, 0x01F7D4],
188 [0x01F800, 0x01F80B],
189 [0x01F810, 0x01F847],
190 [0x01F850, 0x01F859],
191 [0x01F860, 0x01F887],
192 [0x01F890, 0x01F8AD],
193 [0x01F900, 0x01F90B],
194 [0x01FB00, 0x01FBFF],
195 [0x01FFFE, 0x10FFFF]
196 ]
197 });
198 testPropertyEscapes(
199 /^\P{Extended_Pictographic}+$/u,
200 nonMatchSymbols,
201 "\\P{Extended_Pictographic}"
202 );
203 testPropertyEscapes(
204 /^\P{ExtPict}+$/u,
205 nonMatchSymbols,
206 "\\P{ExtPict}"
207 );
208
209 reportCompare(0, 0);