Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Grantha.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=Grantha`
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 0x001CD0,
19 0x0020F0,
20 0x011350,
21 0x011357,
22 0x011FD3
23 ],
24 ranges: [
25 [0x000951, 0x000952],
26 [0x000964, 0x000965],
27 [0x000BE6, 0x000BF3],
28 [0x001CD2, 0x001CD3],
29 [0x001CF2, 0x001CF4],
30 [0x001CF8, 0x001CF9],
31 [0x011300, 0x011303],
32 [0x011305, 0x01130C],
33 [0x01130F, 0x011310],
34 [0x011313, 0x011328],
35 [0x01132A, 0x011330],
36 [0x011332, 0x011333],
37 [0x011335, 0x011339],
38 [0x01133B, 0x011344],
39 [0x011347, 0x011348],
40 [0x01134B, 0x01134D],
41 [0x01135D, 0x011363],
42 [0x011366, 0x01136C],
43 [0x011370, 0x011374],
44 [0x011FD0, 0x011FD1]
45 ]
46 });
47 testPropertyEscapes(
48 /^\p{Script_Extensions=Grantha}+$/u,
49 matchSymbols,
50 "\\p{Script_Extensions=Grantha}"
51 );
52 testPropertyEscapes(
53 /^\p{Script_Extensions=Gran}+$/u,
54 matchSymbols,
55 "\\p{Script_Extensions=Gran}"
56 );
57 testPropertyEscapes(
58 /^\p{scx=Grantha}+$/u,
59 matchSymbols,
60 "\\p{scx=Grantha}"
61 );
62 testPropertyEscapes(
63 /^\p{scx=Gran}+$/u,
64 matchSymbols,
65 "\\p{scx=Gran}"
66 );
67
68 const nonMatchSymbols = buildString({
69 loneCodePoints: [
70 0x001CD1,
71 0x011304,
72 0x011329,
73 0x011331,
74 0x011334,
75 0x01133A,
76 0x011FD2
77 ],
78 ranges: [
79 [0x00DC00, 0x00DFFF],
80 [0x000000, 0x000950],
81 [0x000953, 0x000963],
82 [0x000966, 0x000BE5],
83 [0x000BF4, 0x001CCF],
84 [0x001CD4, 0x001CF1],
85 [0x001CF5, 0x001CF7],
86 [0x001CFA, 0x0020EF],
87 [0x0020F1, 0x00DBFF],
88 [0x00E000, 0x0112FF],
89 [0x01130D, 0x01130E],
90 [0x011311, 0x011312],
91 [0x011345, 0x011346],
92 [0x011349, 0x01134A],
93 [0x01134E, 0x01134F],
94 [0x011351, 0x011356],
95 [0x011358, 0x01135C],
96 [0x011364, 0x011365],
97 [0x01136D, 0x01136F],
98 [0x011375, 0x011FCF],
99 [0x011FD4, 0x10FFFF]
100 ]
101 });
102 testPropertyEscapes(
103 /^\P{Script_Extensions=Grantha}+$/u,
104 nonMatchSymbols,
105 "\\P{Script_Extensions=Grantha}"
106 );
107 testPropertyEscapes(
108 /^\P{Script_Extensions=Gran}+$/u,
109 nonMatchSymbols,
110 "\\P{Script_Extensions=Gran}"
111 );
112 testPropertyEscapes(
113 /^\P{scx=Grantha}+$/u,
114 nonMatchSymbols,
115 "\\P{scx=Grantha}"
116 );
117 testPropertyEscapes(
118 /^\P{scx=Gran}+$/u,
119 nonMatchSymbols,
120 "\\P{scx=Gran}"
121 );
122
123 reportCompare(0, 0);