Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Bengali.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=Bengali`
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 0x0002BC,
19 0x0009B2,
20 0x0009D7,
21 0x001CD0,
22 0x001CD2,
23 0x001CD8,
24 0x001CE1,
25 0x001CEA,
26 0x001CED,
27 0x001CF2,
28 0x00A8F1
29 ],
30 ranges: [
31 [0x000951, 0x000952],
32 [0x000964, 0x000965],
33 [0x000980, 0x000983],
34 [0x000985, 0x00098C],
35 [0x00098F, 0x000990],
36 [0x000993, 0x0009A8],
37 [0x0009AA, 0x0009B0],
38 [0x0009B6, 0x0009B9],
39 [0x0009BC, 0x0009C4],
40 [0x0009C7, 0x0009C8],
41 [0x0009CB, 0x0009CE],
42 [0x0009DC, 0x0009DD],
43 [0x0009DF, 0x0009E3],
44 [0x0009E6, 0x0009FE],
45 [0x001CD5, 0x001CD6],
46 [0x001CF5, 0x001CF7]
47 ]
48 });
49 testPropertyEscapes(
50 /^\p{Script_Extensions=Bengali}+$/u,
51 matchSymbols,
52 "\\p{Script_Extensions=Bengali}"
53 );
54 testPropertyEscapes(
55 /^\p{Script_Extensions=Beng}+$/u,
56 matchSymbols,
57 "\\p{Script_Extensions=Beng}"
58 );
59 testPropertyEscapes(
60 /^\p{scx=Bengali}+$/u,
61 matchSymbols,
62 "\\p{scx=Bengali}"
63 );
64 testPropertyEscapes(
65 /^\p{scx=Beng}+$/u,
66 matchSymbols,
67 "\\p{scx=Beng}"
68 );
69
70 const nonMatchSymbols = buildString({
71 loneCodePoints: [
72 0x000984,
73 0x0009A9,
74 0x0009B1,
75 0x0009DE,
76 0x001CD1,
77 0x001CD7
78 ],
79 ranges: [
80 [0x00DC00, 0x00DFFF],
81 [0x000000, 0x0002BB],
82 [0x0002BD, 0x000950],
83 [0x000953, 0x000963],
84 [0x000966, 0x00097F],
85 [0x00098D, 0x00098E],
86 [0x000991, 0x000992],
87 [0x0009B3, 0x0009B5],
88 [0x0009BA, 0x0009BB],
89 [0x0009C5, 0x0009C6],
90 [0x0009C9, 0x0009CA],
91 [0x0009CF, 0x0009D6],
92 [0x0009D8, 0x0009DB],
93 [0x0009E4, 0x0009E5],
94 [0x0009FF, 0x001CCF],
95 [0x001CD3, 0x001CD4],
96 [0x001CD9, 0x001CE0],
97 [0x001CE2, 0x001CE9],
98 [0x001CEB, 0x001CEC],
99 [0x001CEE, 0x001CF1],
100 [0x001CF3, 0x001CF4],
101 [0x001CF8, 0x00A8F0],
102 [0x00A8F2, 0x00DBFF],
103 [0x00E000, 0x10FFFF]
104 ]
105 });
106 testPropertyEscapes(
107 /^\P{Script_Extensions=Bengali}+$/u,
108 nonMatchSymbols,
109 "\\P{Script_Extensions=Bengali}"
110 );
111 testPropertyEscapes(
112 /^\P{Script_Extensions=Beng}+$/u,
113 nonMatchSymbols,
114 "\\P{Script_Extensions=Beng}"
115 );
116 testPropertyEscapes(
117 /^\P{scx=Bengali}+$/u,
118 nonMatchSymbols,
119 "\\P{scx=Bengali}"
120 );
121 testPropertyEscapes(
122 /^\P{scx=Beng}+$/u,
123 nonMatchSymbols,
124 "\\P{scx=Beng}"
125 );
126
127 reportCompare(0, 0);