Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Gurmukhi.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=Gurmukhi`
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 0x000A3C,
19 0x000A51,
20 0x000A5E
21 ],
22 ranges: [
23 [0x000951, 0x000952],
24 [0x000964, 0x000965],
25 [0x000A01, 0x000A03],
26 [0x000A05, 0x000A0A],
27 [0x000A0F, 0x000A10],
28 [0x000A13, 0x000A28],
29 [0x000A2A, 0x000A30],
30 [0x000A32, 0x000A33],
31 [0x000A35, 0x000A36],
32 [0x000A38, 0x000A39],
33 [0x000A3E, 0x000A42],
34 [0x000A47, 0x000A48],
35 [0x000A4B, 0x000A4D],
36 [0x000A59, 0x000A5C],
37 [0x000A66, 0x000A76],
38 [0x00A830, 0x00A839]
39 ]
40 });
41 testPropertyEscapes(
42 /^\p{Script_Extensions=Gurmukhi}+$/u,
43 matchSymbols,
44 "\\p{Script_Extensions=Gurmukhi}"
45 );
46 testPropertyEscapes(
47 /^\p{Script_Extensions=Guru}+$/u,
48 matchSymbols,
49 "\\p{Script_Extensions=Guru}"
50 );
51 testPropertyEscapes(
52 /^\p{scx=Gurmukhi}+$/u,
53 matchSymbols,
54 "\\p{scx=Gurmukhi}"
55 );
56 testPropertyEscapes(
57 /^\p{scx=Guru}+$/u,
58 matchSymbols,
59 "\\p{scx=Guru}"
60 );
61
62 const nonMatchSymbols = buildString({
63 loneCodePoints: [
64 0x000A04,
65 0x000A29,
66 0x000A31,
67 0x000A34,
68 0x000A37,
69 0x000A3D,
70 0x000A5D
71 ],
72 ranges: [
73 [0x00DC00, 0x00DFFF],
74 [0x000000, 0x000950],
75 [0x000953, 0x000963],
76 [0x000966, 0x000A00],
77 [0x000A0B, 0x000A0E],
78 [0x000A11, 0x000A12],
79 [0x000A3A, 0x000A3B],
80 [0x000A43, 0x000A46],
81 [0x000A49, 0x000A4A],
82 [0x000A4E, 0x000A50],
83 [0x000A52, 0x000A58],
84 [0x000A5F, 0x000A65],
85 [0x000A77, 0x00A82F],
86 [0x00A83A, 0x00DBFF],
87 [0x00E000, 0x10FFFF]
88 ]
89 });
90 testPropertyEscapes(
91 /^\P{Script_Extensions=Gurmukhi}+$/u,
92 nonMatchSymbols,
93 "\\P{Script_Extensions=Gurmukhi}"
94 );
95 testPropertyEscapes(
96 /^\P{Script_Extensions=Guru}+$/u,
97 nonMatchSymbols,
98 "\\P{Script_Extensions=Guru}"
99 );
100 testPropertyEscapes(
101 /^\P{scx=Gurmukhi}+$/u,
102 nonMatchSymbols,
103 "\\P{scx=Gurmukhi}"
104 );
105 testPropertyEscapes(
106 /^\P{scx=Guru}+$/u,
107 nonMatchSymbols,
108 "\\P{scx=Guru}"
109 );
110
111 reportCompare(0, 0);