Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cyrillic.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=Cyrillic`
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 0x0002BC,
19 0x000304,
20 0x000306,
21 0x000308,
22 0x00030B,
23 0x000311,
24 0x001D2B,
25 0x001D78,
26 0x001DF8,
27 0x002E43,
28 0x01E08F
29 ],
30 ranges: [
31 [0x000300, 0x000302],
32 [0x000400, 0x00052F],
33 [0x001C80, 0x001C8A],
34 [0x002DE0, 0x002DFF],
35 [0x00A640, 0x00A69F],
36 [0x00FE2E, 0x00FE2F],
37 [0x01E030, 0x01E06D]
38 ]
39 });
40 testPropertyEscapes(
41 /^\p{Script_Extensions=Cyrillic}+$/u,
42 matchSymbols,
43 "\\p{Script_Extensions=Cyrillic}"
44 );
45 testPropertyEscapes(
46 /^\p{Script_Extensions=Cyrl}+$/u,
47 matchSymbols,
48 "\\p{Script_Extensions=Cyrl}"
49 );
50 testPropertyEscapes(
51 /^\p{scx=Cyrillic}+$/u,
52 matchSymbols,
53 "\\p{scx=Cyrillic}"
54 );
55 testPropertyEscapes(
56 /^\p{scx=Cyrl}+$/u,
57 matchSymbols,
58 "\\p{scx=Cyrl}"
59 );
60
61 const nonMatchSymbols = buildString({
62 loneCodePoints: [
63 0x000303,
64 0x000305,
65 0x000307
66 ],
67 ranges: [
68 [0x00DC00, 0x00DFFF],
69 [0x000000, 0x0002BB],
70 [0x0002BD, 0x0002FF],
71 [0x000309, 0x00030A],
72 [0x00030C, 0x000310],
73 [0x000312, 0x0003FF],
74 [0x000530, 0x001C7F],
75 [0x001C8B, 0x001D2A],
76 [0x001D2C, 0x001D77],
77 [0x001D79, 0x001DF7],
78 [0x001DF9, 0x002DDF],
79 [0x002E00, 0x002E42],
80 [0x002E44, 0x00A63F],
81 [0x00A6A0, 0x00DBFF],
82 [0x00E000, 0x00FE2D],
83 [0x00FE30, 0x01E02F],
84 [0x01E06E, 0x01E08E],
85 [0x01E090, 0x10FFFF]
86 ]
87 });
88 testPropertyEscapes(
89 /^\P{Script_Extensions=Cyrillic}+$/u,
90 nonMatchSymbols,
91 "\\P{Script_Extensions=Cyrillic}"
92 );
93 testPropertyEscapes(
94 /^\P{Script_Extensions=Cyrl}+$/u,
95 nonMatchSymbols,
96 "\\P{Script_Extensions=Cyrl}"
97 );
98 testPropertyEscapes(
99 /^\P{scx=Cyrillic}+$/u,
100 nonMatchSymbols,
101 "\\P{scx=Cyrillic}"
102 );
103 testPropertyEscapes(
104 /^\P{scx=Cyrl}+$/u,
105 nonMatchSymbols,
106 "\\P{scx=Cyrl}"
107 );
108
109 reportCompare(0, 0);