Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cypriot.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=Cypriot`
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 0x010808,
19 0x01083C,
20 0x01083F
21 ],
22 ranges: [
23 [0x010100, 0x010102],
24 [0x010107, 0x010133],
25 [0x010137, 0x01013F],
26 [0x010800, 0x010805],
27 [0x01080A, 0x010835],
28 [0x010837, 0x010838]
29 ]
30 });
31 testPropertyEscapes(
32 /^\p{Script_Extensions=Cypriot}+$/u,
33 matchSymbols,
34 "\\p{Script_Extensions=Cypriot}"
35 );
36 testPropertyEscapes(
37 /^\p{Script_Extensions=Cprt}+$/u,
38 matchSymbols,
39 "\\p{Script_Extensions=Cprt}"
40 );
41 testPropertyEscapes(
42 /^\p{scx=Cypriot}+$/u,
43 matchSymbols,
44 "\\p{scx=Cypriot}"
45 );
46 testPropertyEscapes(
47 /^\p{scx=Cprt}+$/u,
48 matchSymbols,
49 "\\p{scx=Cprt}"
50 );
51
52 const nonMatchSymbols = buildString({
53 loneCodePoints: [
54 0x010809,
55 0x010836
56 ],
57 ranges: [
58 [0x00DC00, 0x00DFFF],
59 [0x000000, 0x00DBFF],
60 [0x00E000, 0x0100FF],
61 [0x010103, 0x010106],
62 [0x010134, 0x010136],
63 [0x010140, 0x0107FF],
64 [0x010806, 0x010807],
65 [0x010839, 0x01083B],
66 [0x01083D, 0x01083E],
67 [0x010840, 0x10FFFF]
68 ]
69 });
70 testPropertyEscapes(
71 /^\P{Script_Extensions=Cypriot}+$/u,
72 nonMatchSymbols,
73 "\\P{Script_Extensions=Cypriot}"
74 );
75 testPropertyEscapes(
76 /^\P{Script_Extensions=Cprt}+$/u,
77 nonMatchSymbols,
78 "\\P{Script_Extensions=Cprt}"
79 );
80 testPropertyEscapes(
81 /^\P{scx=Cypriot}+$/u,
82 nonMatchSymbols,
83 "\\P{scx=Cypriot}"
84 );
85 testPropertyEscapes(
86 /^\P{scx=Cprt}+$/u,
87 nonMatchSymbols,
88 "\\P{scx=Cprt}"
89 );
90
91 reportCompare(0, 0);