Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_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=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 ranges: [
19 [0x002C00, 0x002C5F],
20 [0x01E000, 0x01E006],
21 [0x01E008, 0x01E018],
22 [0x01E01B, 0x01E021],
23 [0x01E023, 0x01E024],
24 [0x01E026, 0x01E02A]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Script=Glagolitic}+$/u,
29 matchSymbols,
30 "\\p{Script=Glagolitic}"
31 );
32 testPropertyEscapes(
33 /^\p{Script=Glag}+$/u,
34 matchSymbols,
35 "\\p{Script=Glag}"
36 );
37 testPropertyEscapes(
38 /^\p{sc=Glagolitic}+$/u,
39 matchSymbols,
40 "\\p{sc=Glagolitic}"
41 );
42 testPropertyEscapes(
43 /^\p{sc=Glag}+$/u,
44 matchSymbols,
45 "\\p{sc=Glag}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [
50 0x01E007,
51 0x01E022,
52 0x01E025
53 ],
54 ranges: [
55 [0x00DC00, 0x00DFFF],
56 [0x000000, 0x002BFF],
57 [0x002C60, 0x00DBFF],
58 [0x00E000, 0x01DFFF],
59 [0x01E019, 0x01E01A],
60 [0x01E02B, 0x10FFFF]
61 ]
62 });
63 testPropertyEscapes(
64 /^\P{Script=Glagolitic}+$/u,
65 nonMatchSymbols,
66 "\\P{Script=Glagolitic}"
67 );
68 testPropertyEscapes(
69 /^\P{Script=Glag}+$/u,
70 nonMatchSymbols,
71 "\\P{Script=Glag}"
72 );
73 testPropertyEscapes(
74 /^\P{sc=Glagolitic}+$/u,
75 nonMatchSymbols,
76 "\\P{sc=Glagolitic}"
77 );
78 testPropertyEscapes(
79 /^\P{sc=Glag}+$/u,
80 nonMatchSymbols,
81 "\\P{sc=Glag}"
82 );
83
84 reportCompare(0, 0);