Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Gunjala_Gondi.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=Gunjala_Gondi`
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 ranges: [
19 [0x011D60, 0x011D65],
20 [0x011D67, 0x011D68],
21 [0x011D6A, 0x011D8E],
22 [0x011D90, 0x011D91],
23 [0x011D93, 0x011D98],
24 [0x011DA0, 0x011DA9]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Script=Gunjala_Gondi}+$/u,
29 matchSymbols,
30 "\\p{Script=Gunjala_Gondi}"
31 );
32 testPropertyEscapes(
33 /^\p{Script=Gong}+$/u,
34 matchSymbols,
35 "\\p{Script=Gong}"
36 );
37 testPropertyEscapes(
38 /^\p{sc=Gunjala_Gondi}+$/u,
39 matchSymbols,
40 "\\p{sc=Gunjala_Gondi}"
41 );
42 testPropertyEscapes(
43 /^\p{sc=Gong}+$/u,
44 matchSymbols,
45 "\\p{sc=Gong}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [
50 0x011D66,
51 0x011D69,
52 0x011D8F,
53 0x011D92
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x00DBFF],
58 [0x00E000, 0x011D5F],
59 [0x011D99, 0x011D9F],
60 [0x011DAA, 0x10FFFF]
61 ]
62 });
63 testPropertyEscapes(
64 /^\P{Script=Gunjala_Gondi}+$/u,
65 nonMatchSymbols,
66 "\\P{Script=Gunjala_Gondi}"
67 );
68 testPropertyEscapes(
69 /^\P{Script=Gong}+$/u,
70 nonMatchSymbols,
71 "\\P{Script=Gong}"
72 );
73 testPropertyEscapes(
74 /^\P{sc=Gunjala_Gondi}+$/u,
75 nonMatchSymbols,
76 "\\P{sc=Gunjala_Gondi}"
77 );
78 testPropertyEscapes(
79 /^\P{sc=Gong}+$/u,
80 nonMatchSymbols,
81 "\\P{sc=Gong}"
82 );
83
84 reportCompare(0, 0);