Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Tulu_Tigalari.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=Tulu_Tigalari`
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 0x01138B,
19 0x01138E,
20 0x0113C2,
21 0x0113C5
22 ],
23 ranges: [
24 [0x011380, 0x011389],
25 [0x011390, 0x0113B5],
26 [0x0113B7, 0x0113C0],
27 [0x0113C7, 0x0113CA],
28 [0x0113CC, 0x0113D5],
29 [0x0113D7, 0x0113D8],
30 [0x0113E1, 0x0113E2]
31 ]
32 });
33 testPropertyEscapes(
34 /^\p{Script=Tulu_Tigalari}+$/u,
35 matchSymbols,
36 "\\p{Script=Tulu_Tigalari}"
37 );
38 testPropertyEscapes(
39 /^\p{Script=Tutg}+$/u,
40 matchSymbols,
41 "\\p{Script=Tutg}"
42 );
43 testPropertyEscapes(
44 /^\p{sc=Tulu_Tigalari}+$/u,
45 matchSymbols,
46 "\\p{sc=Tulu_Tigalari}"
47 );
48 testPropertyEscapes(
49 /^\p{sc=Tutg}+$/u,
50 matchSymbols,
51 "\\p{sc=Tutg}"
52 );
53
54 const nonMatchSymbols = buildString({
55 loneCodePoints: [
56 0x01138A,
57 0x01138F,
58 0x0113B6,
59 0x0113C1,
60 0x0113C6,
61 0x0113CB,
62 0x0113D6
63 ],
64 ranges: [
65 [0x00DC00, 0x00DFFF],
66 [0x000000, 0x00DBFF],
67 [0x00E000, 0x01137F],
68 [0x01138C, 0x01138D],
69 [0x0113C3, 0x0113C4],
70 [0x0113D9, 0x0113E0],
71 [0x0113E3, 0x10FFFF]
72 ]
73 });
74 testPropertyEscapes(
75 /^\P{Script=Tulu_Tigalari}+$/u,
76 nonMatchSymbols,
77 "\\P{Script=Tulu_Tigalari}"
78 );
79 testPropertyEscapes(
80 /^\P{Script=Tutg}+$/u,
81 nonMatchSymbols,
82 "\\P{Script=Tutg}"
83 );
84 testPropertyEscapes(
85 /^\P{sc=Tulu_Tigalari}+$/u,
86 nonMatchSymbols,
87 "\\P{sc=Tulu_Tigalari}"
88 );
89 testPropertyEscapes(
90 /^\P{sc=Tutg}+$/u,
91 nonMatchSymbols,
92 "\\P{sc=Tutg}"
93 );
94
95 reportCompare(0, 0);