Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Runic.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=Runic`
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 [0x0016A0, 0x0016F8]
20 ]
21 });
22 testPropertyEscapes(
23 /^\p{Script_Extensions=Runic}+$/u,
24 matchSymbols,
25 "\\p{Script_Extensions=Runic}"
26 );
27 testPropertyEscapes(
28 /^\p{Script_Extensions=Runr}+$/u,
29 matchSymbols,
30 "\\p{Script_Extensions=Runr}"
31 );
32 testPropertyEscapes(
33 /^\p{scx=Runic}+$/u,
34 matchSymbols,
35 "\\p{scx=Runic}"
36 );
37 testPropertyEscapes(
38 /^\p{scx=Runr}+$/u,
39 matchSymbols,
40 "\\p{scx=Runr}"
41 );
42
43 const nonMatchSymbols = buildString({
44 loneCodePoints: [],
45 ranges: [
46 [0x00DC00, 0x00DFFF],
47 [0x000000, 0x00169F],
48 [0x0016F9, 0x00DBFF],
49 [0x00E000, 0x10FFFF]
50 ]
51 });
52 testPropertyEscapes(
53 /^\P{Script_Extensions=Runic}+$/u,
54 nonMatchSymbols,
55 "\\P{Script_Extensions=Runic}"
56 );
57 testPropertyEscapes(
58 /^\P{Script_Extensions=Runr}+$/u,
59 nonMatchSymbols,
60 "\\P{Script_Extensions=Runr}"
61 );
62 testPropertyEscapes(
63 /^\P{scx=Runic}+$/u,
64 nonMatchSymbols,
65 "\\P{scx=Runic}"
66 );
67 testPropertyEscapes(
68 /^\P{scx=Runr}+$/u,
69 nonMatchSymbols,
70 "\\P{scx=Runr}"
71 );
72
73 reportCompare(0, 0);