Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Tamil.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=Tamil`
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 0x000B9C,
19 0x000BD0,
20 0x000BD7,
21 0x001CDA,
22 0x00A8F3,
23 0x011301,
24 0x011303,
25 0x011FFF
26 ],
27 ranges: [
28 [0x000951, 0x000952],
29 [0x000964, 0x000965],
30 [0x000B82, 0x000B83],
31 [0x000B85, 0x000B8A],
32 [0x000B8E, 0x000B90],
33 [0x000B92, 0x000B95],
34 [0x000B99, 0x000B9A],
35 [0x000B9E, 0x000B9F],
36 [0x000BA3, 0x000BA4],
37 [0x000BA8, 0x000BAA],
38 [0x000BAE, 0x000BB9],
39 [0x000BBE, 0x000BC2],
40 [0x000BC6, 0x000BC8],
41 [0x000BCA, 0x000BCD],
42 [0x000BE6, 0x000BFA],
43 [0x01133B, 0x01133C],
44 [0x011FC0, 0x011FF1]
45 ]
46 });
47 testPropertyEscapes(
48 /^\p{Script_Extensions=Tamil}+$/u,
49 matchSymbols,
50 "\\p{Script_Extensions=Tamil}"
51 );
52 testPropertyEscapes(
53 /^\p{Script_Extensions=Taml}+$/u,
54 matchSymbols,
55 "\\p{Script_Extensions=Taml}"
56 );
57 testPropertyEscapes(
58 /^\p{scx=Tamil}+$/u,
59 matchSymbols,
60 "\\p{scx=Tamil}"
61 );
62 testPropertyEscapes(
63 /^\p{scx=Taml}+$/u,
64 matchSymbols,
65 "\\p{scx=Taml}"
66 );
67
68 const nonMatchSymbols = buildString({
69 loneCodePoints: [
70 0x000B84,
71 0x000B91,
72 0x000B9B,
73 0x000B9D,
74 0x000BC9,
75 0x011302
76 ],
77 ranges: [
78 [0x00DC00, 0x00DFFF],
79 [0x000000, 0x000950],
80 [0x000953, 0x000963],
81 [0x000966, 0x000B81],
82 [0x000B8B, 0x000B8D],
83 [0x000B96, 0x000B98],
84 [0x000BA0, 0x000BA2],
85 [0x000BA5, 0x000BA7],
86 [0x000BAB, 0x000BAD],
87 [0x000BBA, 0x000BBD],
88 [0x000BC3, 0x000BC5],
89 [0x000BCE, 0x000BCF],
90 [0x000BD1, 0x000BD6],
91 [0x000BD8, 0x000BE5],
92 [0x000BFB, 0x001CD9],
93 [0x001CDB, 0x00A8F2],
94 [0x00A8F4, 0x00DBFF],
95 [0x00E000, 0x011300],
96 [0x011304, 0x01133A],
97 [0x01133D, 0x011FBF],
98 [0x011FF2, 0x011FFE],
99 [0x012000, 0x10FFFF]
100 ]
101 });
102 testPropertyEscapes(
103 /^\P{Script_Extensions=Tamil}+$/u,
104 nonMatchSymbols,
105 "\\P{Script_Extensions=Tamil}"
106 );
107 testPropertyEscapes(
108 /^\P{Script_Extensions=Taml}+$/u,
109 nonMatchSymbols,
110 "\\P{Script_Extensions=Taml}"
111 );
112 testPropertyEscapes(
113 /^\P{scx=Tamil}+$/u,
114 nonMatchSymbols,
115 "\\P{scx=Tamil}"
116 );
117 testPropertyEscapes(
118 /^\P{scx=Taml}+$/u,
119 nonMatchSymbols,
120 "\\P{scx=Taml}"
121 );
122
123 reportCompare(0, 0);