Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Arabic.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=Arabic`
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 0x00204F,
19 0x002E41,
20 0x00FDCF,
21 0x01EE24,
22 0x01EE27,
23 0x01EE39,
24 0x01EE3B,
25 0x01EE42,
26 0x01EE47,
27 0x01EE49,
28 0x01EE4B,
29 0x01EE54,
30 0x01EE57,
31 0x01EE59,
32 0x01EE5B,
33 0x01EE5D,
34 0x01EE5F,
35 0x01EE64,
36 0x01EE7E
37 ],
38 ranges: [
39 [0x000600, 0x000604],
40 [0x000606, 0x0006DC],
41 [0x0006DE, 0x0006FF],
42 [0x000750, 0x00077F],
43 [0x000870, 0x00088E],
44 [0x000890, 0x000891],
45 [0x000897, 0x0008E1],
46 [0x0008E3, 0x0008FF],
47 [0x00FB50, 0x00FBC2],
48 [0x00FBD3, 0x00FD8F],
49 [0x00FD92, 0x00FDC7],
50 [0x00FDF0, 0x00FDFF],
51 [0x00FE70, 0x00FE74],
52 [0x00FE76, 0x00FEFC],
53 [0x0102E0, 0x0102FB],
54 [0x010E60, 0x010E7E],
55 [0x010EC2, 0x010EC4],
56 [0x010EFC, 0x010EFF],
57 [0x01EE00, 0x01EE03],
58 [0x01EE05, 0x01EE1F],
59 [0x01EE21, 0x01EE22],
60 [0x01EE29, 0x01EE32],
61 [0x01EE34, 0x01EE37],
62 [0x01EE4D, 0x01EE4F],
63 [0x01EE51, 0x01EE52],
64 [0x01EE61, 0x01EE62],
65 [0x01EE67, 0x01EE6A],
66 [0x01EE6C, 0x01EE72],
67 [0x01EE74, 0x01EE77],
68 [0x01EE79, 0x01EE7C],
69 [0x01EE80, 0x01EE89],
70 [0x01EE8B, 0x01EE9B],
71 [0x01EEA1, 0x01EEA3],
72 [0x01EEA5, 0x01EEA9],
73 [0x01EEAB, 0x01EEBB],
74 [0x01EEF0, 0x01EEF1]
75 ]
76 });
77 testPropertyEscapes(
78 /^\p{Script_Extensions=Arabic}+$/u,
79 matchSymbols,
80 "\\p{Script_Extensions=Arabic}"
81 );
82 testPropertyEscapes(
83 /^\p{Script_Extensions=Arab}+$/u,
84 matchSymbols,
85 "\\p{Script_Extensions=Arab}"
86 );
87 testPropertyEscapes(
88 /^\p{scx=Arabic}+$/u,
89 matchSymbols,
90 "\\p{scx=Arabic}"
91 );
92 testPropertyEscapes(
93 /^\p{scx=Arab}+$/u,
94 matchSymbols,
95 "\\p{scx=Arab}"
96 );
97
98 const nonMatchSymbols = buildString({
99 loneCodePoints: [
100 0x000605,
101 0x0006DD,
102 0x00088F,
103 0x0008E2,
104 0x00FE75,
105 0x01EE04,
106 0x01EE20,
107 0x01EE23,
108 0x01EE28,
109 0x01EE33,
110 0x01EE38,
111 0x01EE3A,
112 0x01EE48,
113 0x01EE4A,
114 0x01EE4C,
115 0x01EE50,
116 0x01EE53,
117 0x01EE58,
118 0x01EE5A,
119 0x01EE5C,
120 0x01EE5E,
121 0x01EE60,
122 0x01EE63,
123 0x01EE6B,
124 0x01EE73,
125 0x01EE78,
126 0x01EE7D,
127 0x01EE7F,
128 0x01EE8A,
129 0x01EEA4,
130 0x01EEAA
131 ],
132 ranges: [
133 [0x00DC00, 0x00DFFF],
134 [0x000000, 0x0005FF],
135 [0x000700, 0x00074F],
136 [0x000780, 0x00086F],
137 [0x000892, 0x000896],
138 [0x000900, 0x00204E],
139 [0x002050, 0x002E40],
140 [0x002E42, 0x00DBFF],
141 [0x00E000, 0x00FB4F],
142 [0x00FBC3, 0x00FBD2],
143 [0x00FD90, 0x00FD91],
144 [0x00FDC8, 0x00FDCE],
145 [0x00FDD0, 0x00FDEF],
146 [0x00FE00, 0x00FE6F],
147 [0x00FEFD, 0x0102DF],
148 [0x0102FC, 0x010E5F],
149 [0x010E7F, 0x010EC1],
150 [0x010EC5, 0x010EFB],
151 [0x010F00, 0x01EDFF],
152 [0x01EE25, 0x01EE26],
153 [0x01EE3C, 0x01EE41],
154 [0x01EE43, 0x01EE46],
155 [0x01EE55, 0x01EE56],
156 [0x01EE65, 0x01EE66],
157 [0x01EE9C, 0x01EEA0],
158 [0x01EEBC, 0x01EEEF],
159 [0x01EEF2, 0x10FFFF]
160 ]
161 });
162 testPropertyEscapes(
163 /^\P{Script_Extensions=Arabic}+$/u,
164 nonMatchSymbols,
165 "\\P{Script_Extensions=Arabic}"
166 );
167 testPropertyEscapes(
168 /^\P{Script_Extensions=Arab}+$/u,
169 nonMatchSymbols,
170 "\\P{Script_Extensions=Arab}"
171 );
172 testPropertyEscapes(
173 /^\P{scx=Arabic}+$/u,
174 nonMatchSymbols,
175 "\\P{scx=Arabic}"
176 );
177 testPropertyEscapes(
178 /^\P{scx=Arab}+$/u,
179 nonMatchSymbols,
180 "\\P{scx=Arab}"
181 );
182
183 reportCompare(0, 0);