Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sharada.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=Sharada`
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 0x000951,
19 0x001CD7,
20 0x001CD9,
21 0x001CE0,
22 0x00A838
23 ],
24 ranges: [
25 [0x001CDC, 0x001CDD],
26 [0x00A830, 0x00A835],
27 [0x011180, 0x0111DF]
28 ]
29 });
30 testPropertyEscapes(
31 /^\p{Script_Extensions=Sharada}+$/u,
32 matchSymbols,
33 "\\p{Script_Extensions=Sharada}"
34 );
35 testPropertyEscapes(
36 /^\p{Script_Extensions=Shrd}+$/u,
37 matchSymbols,
38 "\\p{Script_Extensions=Shrd}"
39 );
40 testPropertyEscapes(
41 /^\p{scx=Sharada}+$/u,
42 matchSymbols,
43 "\\p{scx=Sharada}"
44 );
45 testPropertyEscapes(
46 /^\p{scx=Shrd}+$/u,
47 matchSymbols,
48 "\\p{scx=Shrd}"
49 );
50
51 const nonMatchSymbols = buildString({
52 loneCodePoints: [
53 0x001CD8
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x000950],
58 [0x000952, 0x001CD6],
59 [0x001CDA, 0x001CDB],
60 [0x001CDE, 0x001CDF],
61 [0x001CE1, 0x00A82F],
62 [0x00A836, 0x00A837],
63 [0x00A839, 0x00DBFF],
64 [0x00E000, 0x01117F],
65 [0x0111E0, 0x10FFFF]
66 ]
67 });
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Sharada}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Sharada}"
72 );
73 testPropertyEscapes(
74 /^\P{Script_Extensions=Shrd}+$/u,
75 nonMatchSymbols,
76 "\\P{Script_Extensions=Shrd}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Sharada}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Sharada}"
82 );
83 testPropertyEscapes(
84 /^\P{scx=Shrd}+$/u,
85 nonMatchSymbols,
86 "\\P{scx=Shrd}"
87 );
88
89 reportCompare(0, 0);