Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.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=Glagolitic`
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 0x0000B7,
19 0x000303,
20 0x000305,
21 0x000484,
22 0x000487,
23 0x000589,
24 0x0010FB,
25 0x00205A,
26 0x002E43,
27 0x00A66F
28 ],
29 ranges: [
30 [0x002C00, 0x002C5F],
31 [0x01E000, 0x01E006],
32 [0x01E008, 0x01E018],
33 [0x01E01B, 0x01E021],
34 [0x01E023, 0x01E024],
35 [0x01E026, 0x01E02A]
36 ]
37 });
38 testPropertyEscapes(
39 /^\p{Script_Extensions=Glagolitic}+$/u,
40 matchSymbols,
41 "\\p{Script_Extensions=Glagolitic}"
42 );
43 testPropertyEscapes(
44 /^\p{Script_Extensions=Glag}+$/u,
45 matchSymbols,
46 "\\p{Script_Extensions=Glag}"
47 );
48 testPropertyEscapes(
49 /^\p{scx=Glagolitic}+$/u,
50 matchSymbols,
51 "\\p{scx=Glagolitic}"
52 );
53 testPropertyEscapes(
54 /^\p{scx=Glag}+$/u,
55 matchSymbols,
56 "\\p{scx=Glag}"
57 );
58
59 const nonMatchSymbols = buildString({
60 loneCodePoints: [
61 0x000304,
62 0x01E007,
63 0x01E022,
64 0x01E025
65 ],
66 ranges: [
67 [0x00DC00, 0x00DFFF],
68 [0x000000, 0x0000B6],
69 [0x0000B8, 0x000302],
70 [0x000306, 0x000483],
71 [0x000485, 0x000486],
72 [0x000488, 0x000588],
73 [0x00058A, 0x0010FA],
74 [0x0010FC, 0x002059],
75 [0x00205B, 0x002BFF],
76 [0x002C60, 0x002E42],
77 [0x002E44, 0x00A66E],
78 [0x00A670, 0x00DBFF],
79 [0x00E000, 0x01DFFF],
80 [0x01E019, 0x01E01A],
81 [0x01E02B, 0x10FFFF]
82 ]
83 });
84 testPropertyEscapes(
85 /^\P{Script_Extensions=Glagolitic}+$/u,
86 nonMatchSymbols,
87 "\\P{Script_Extensions=Glagolitic}"
88 );
89 testPropertyEscapes(
90 /^\P{Script_Extensions=Glag}+$/u,
91 nonMatchSymbols,
92 "\\P{Script_Extensions=Glag}"
93 );
94 testPropertyEscapes(
95 /^\P{scx=Glagolitic}+$/u,
96 nonMatchSymbols,
97 "\\P{scx=Glagolitic}"
98 );
99 testPropertyEscapes(
100 /^\P{scx=Glag}+$/u,
101 nonMatchSymbols,
102 "\\P{scx=Glag}"
103 );
104
105 reportCompare(0, 0);