Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Telugu.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=Telugu`
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 0x000C5D,
19 0x001CDA,
20 0x001CF2
21 ],
22 ranges: [
23 [0x000951, 0x000952],
24 [0x000964, 0x000965],
25 [0x000C00, 0x000C0C],
26 [0x000C0E, 0x000C10],
27 [0x000C12, 0x000C28],
28 [0x000C2A, 0x000C39],
29 [0x000C3C, 0x000C44],
30 [0x000C46, 0x000C48],
31 [0x000C4A, 0x000C4D],
32 [0x000C55, 0x000C56],
33 [0x000C58, 0x000C5A],
34 [0x000C60, 0x000C63],
35 [0x000C66, 0x000C6F],
36 [0x000C77, 0x000C7F]
37 ]
38 });
39 testPropertyEscapes(
40 /^\p{Script_Extensions=Telugu}+$/u,
41 matchSymbols,
42 "\\p{Script_Extensions=Telugu}"
43 );
44 testPropertyEscapes(
45 /^\p{Script_Extensions=Telu}+$/u,
46 matchSymbols,
47 "\\p{Script_Extensions=Telu}"
48 );
49 testPropertyEscapes(
50 /^\p{scx=Telugu}+$/u,
51 matchSymbols,
52 "\\p{scx=Telugu}"
53 );
54 testPropertyEscapes(
55 /^\p{scx=Telu}+$/u,
56 matchSymbols,
57 "\\p{scx=Telu}"
58 );
59
60 const nonMatchSymbols = buildString({
61 loneCodePoints: [
62 0x000C0D,
63 0x000C11,
64 0x000C29,
65 0x000C45,
66 0x000C49,
67 0x000C57
68 ],
69 ranges: [
70 [0x00DC00, 0x00DFFF],
71 [0x000000, 0x000950],
72 [0x000953, 0x000963],
73 [0x000966, 0x000BFF],
74 [0x000C3A, 0x000C3B],
75 [0x000C4E, 0x000C54],
76 [0x000C5B, 0x000C5C],
77 [0x000C5E, 0x000C5F],
78 [0x000C64, 0x000C65],
79 [0x000C70, 0x000C76],
80 [0x000C80, 0x001CD9],
81 [0x001CDB, 0x001CF1],
82 [0x001CF3, 0x00DBFF],
83 [0x00E000, 0x10FFFF]
84 ]
85 });
86 testPropertyEscapes(
87 /^\P{Script_Extensions=Telugu}+$/u,
88 nonMatchSymbols,
89 "\\P{Script_Extensions=Telugu}"
90 );
91 testPropertyEscapes(
92 /^\P{Script_Extensions=Telu}+$/u,
93 nonMatchSymbols,
94 "\\P{Script_Extensions=Telu}"
95 );
96 testPropertyEscapes(
97 /^\P{scx=Telugu}+$/u,
98 nonMatchSymbols,
99 "\\P{scx=Telugu}"
100 );
101 testPropertyEscapes(
102 /^\P{scx=Telu}+$/u,
103 nonMatchSymbols,
104 "\\P{scx=Telu}"
105 );
106
107 reportCompare(0, 0);