Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Gujarati.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=Gujarati`
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 0x000AD0
19 ],
20 ranges: [
21 [0x000951, 0x000952],
22 [0x000964, 0x000965],
23 [0x000A81, 0x000A83],
24 [0x000A85, 0x000A8D],
25 [0x000A8F, 0x000A91],
26 [0x000A93, 0x000AA8],
27 [0x000AAA, 0x000AB0],
28 [0x000AB2, 0x000AB3],
29 [0x000AB5, 0x000AB9],
30 [0x000ABC, 0x000AC5],
31 [0x000AC7, 0x000AC9],
32 [0x000ACB, 0x000ACD],
33 [0x000AE0, 0x000AE3],
34 [0x000AE6, 0x000AF1],
35 [0x000AF9, 0x000AFF],
36 [0x00A830, 0x00A839]
37 ]
38 });
39 testPropertyEscapes(
40 /^\p{Script_Extensions=Gujarati}+$/u,
41 matchSymbols,
42 "\\p{Script_Extensions=Gujarati}"
43 );
44 testPropertyEscapes(
45 /^\p{Script_Extensions=Gujr}+$/u,
46 matchSymbols,
47 "\\p{Script_Extensions=Gujr}"
48 );
49 testPropertyEscapes(
50 /^\p{scx=Gujarati}+$/u,
51 matchSymbols,
52 "\\p{scx=Gujarati}"
53 );
54 testPropertyEscapes(
55 /^\p{scx=Gujr}+$/u,
56 matchSymbols,
57 "\\p{scx=Gujr}"
58 );
59
60 const nonMatchSymbols = buildString({
61 loneCodePoints: [
62 0x000A84,
63 0x000A8E,
64 0x000A92,
65 0x000AA9,
66 0x000AB1,
67 0x000AB4,
68 0x000AC6,
69 0x000ACA
70 ],
71 ranges: [
72 [0x00DC00, 0x00DFFF],
73 [0x000000, 0x000950],
74 [0x000953, 0x000963],
75 [0x000966, 0x000A80],
76 [0x000ABA, 0x000ABB],
77 [0x000ACE, 0x000ACF],
78 [0x000AD1, 0x000ADF],
79 [0x000AE4, 0x000AE5],
80 [0x000AF2, 0x000AF8],
81 [0x000B00, 0x00A82F],
82 [0x00A83A, 0x00DBFF],
83 [0x00E000, 0x10FFFF]
84 ]
85 });
86 testPropertyEscapes(
87 /^\P{Script_Extensions=Gujarati}+$/u,
88 nonMatchSymbols,
89 "\\P{Script_Extensions=Gujarati}"
90 );
91 testPropertyEscapes(
92 /^\P{Script_Extensions=Gujr}+$/u,
93 nonMatchSymbols,
94 "\\P{Script_Extensions=Gujr}"
95 );
96 testPropertyEscapes(
97 /^\P{scx=Gujarati}+$/u,
98 nonMatchSymbols,
99 "\\P{scx=Gujarati}"
100 );
101 testPropertyEscapes(
102 /^\P{scx=Gujr}+$/u,
103 nonMatchSymbols,
104 "\\P{scx=Gujr}"
105 );
106
107 reportCompare(0, 0);