Debian Codegraph @

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