Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Syriac.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=Syriac`
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 0x00030A,
19 0x000320,
20 0x000330,
21 0x00060C,
22 0x00061F,
23 0x000640,
24 0x000670,
25 0x001DF8,
26 0x001DFA
27 ],
28 ranges: [
29 [0x000303, 0x000304],
30 [0x000307, 0x000308],
31 [0x000323, 0x000325],
32 [0x00032D, 0x00032E],
33 [0x00061B, 0x00061C],
34 [0x00064B, 0x000655],
35 [0x000700, 0x00070D],
36 [0x00070F, 0x00074A],
37 [0x00074D, 0x00074F],
38 [0x000860, 0x00086A]
39 ]
40 });
41 testPropertyEscapes(
42 /^\p{Script_Extensions=Syriac}+$/u,
43 matchSymbols,
44 "\\p{Script_Extensions=Syriac}"
45 );
46 testPropertyEscapes(
47 /^\p{Script_Extensions=Syrc}+$/u,
48 matchSymbols,
49 "\\p{Script_Extensions=Syrc}"
50 );
51 testPropertyEscapes(
52 /^\p{scx=Syriac}+$/u,
53 matchSymbols,
54 "\\p{scx=Syriac}"
55 );
56 testPropertyEscapes(
57 /^\p{scx=Syrc}+$/u,
58 matchSymbols,
59 "\\p{scx=Syrc}"
60 );
61
62 const nonMatchSymbols = buildString({
63 loneCodePoints: [
64 0x000309,
65 0x00032F,
66 0x00070E,
67 0x001DF9
68 ],
69 ranges: [
70 [0x00DC00, 0x00DFFF],
71 [0x000000, 0x000302],
72 [0x000305, 0x000306],
73 [0x00030B, 0x00031F],
74 [0x000321, 0x000322],
75 [0x000326, 0x00032C],
76 [0x000331, 0x00060B],
77 [0x00060D, 0x00061A],
78 [0x00061D, 0x00061E],
79 [0x000620, 0x00063F],
80 [0x000641, 0x00064A],
81 [0x000656, 0x00066F],
82 [0x000671, 0x0006FF],
83 [0x00074B, 0x00074C],
84 [0x000750, 0x00085F],
85 [0x00086B, 0x001DF7],
86 [0x001DFB, 0x00DBFF],
87 [0x00E000, 0x10FFFF]
88 ]
89 });
90 testPropertyEscapes(
91 /^\P{Script_Extensions=Syriac}+$/u,
92 nonMatchSymbols,
93 "\\P{Script_Extensions=Syriac}"
94 );
95 testPropertyEscapes(
96 /^\P{Script_Extensions=Syrc}+$/u,
97 nonMatchSymbols,
98 "\\P{Script_Extensions=Syrc}"
99 );
100 testPropertyEscapes(
101 /^\P{scx=Syriac}+$/u,
102 nonMatchSymbols,
103 "\\P{scx=Syriac}"
104 );
105 testPropertyEscapes(
106 /^\P{scx=Syrc}+$/u,
107 nonMatchSymbols,
108 "\\P{scx=Syrc}"
109 );
110
111 reportCompare(0, 0);