Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Lydian.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=Lydian`
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 0x002E31,
20 0x01093F
21 ],
22 ranges: [
23 [0x010920, 0x010939]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script_Extensions=Lydian}+$/u,
28 matchSymbols,
29 "\\p{Script_Extensions=Lydian}"
30 );
31 testPropertyEscapes(
32 /^\p{Script_Extensions=Lydi}+$/u,
33 matchSymbols,
34 "\\p{Script_Extensions=Lydi}"
35 );
36 testPropertyEscapes(
37 /^\p{scx=Lydian}+$/u,
38 matchSymbols,
39 "\\p{scx=Lydian}"
40 );
41 testPropertyEscapes(
42 /^\p{scx=Lydi}+$/u,
43 matchSymbols,
44 "\\p{scx=Lydi}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [],
49 ranges: [
50 [0x00DC00, 0x00DFFF],
51 [0x000000, 0x0000B6],
52 [0x0000B8, 0x002E30],
53 [0x002E32, 0x00DBFF],
54 [0x00E000, 0x01091F],
55 [0x01093A, 0x01093E],
56 [0x010940, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script_Extensions=Lydian}+$/u,
61 nonMatchSymbols,
62 "\\P{Script_Extensions=Lydian}"
63 );
64 testPropertyEscapes(
65 /^\P{Script_Extensions=Lydi}+$/u,
66 nonMatchSymbols,
67 "\\P{Script_Extensions=Lydi}"
68 );
69 testPropertyEscapes(
70 /^\P{scx=Lydian}+$/u,
71 nonMatchSymbols,
72 "\\P{scx=Lydian}"
73 );
74 testPropertyEscapes(
75 /^\P{scx=Lydi}+$/u,
76 nonMatchSymbols,
77 "\\P{scx=Lydi}"
78 );
79
80 reportCompare(0, 0);