Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Tifinagh.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=Tifinagh`
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 0x000302,
19 0x000304,
20 0x000307,
21 0x000309,
22 0x002D7F
23 ],
24 ranges: [
25 [0x002D30, 0x002D67],
26 [0x002D6F, 0x002D70]
27 ]
28 });
29 testPropertyEscapes(
30 /^\p{Script_Extensions=Tifinagh}+$/u,
31 matchSymbols,
32 "\\p{Script_Extensions=Tifinagh}"
33 );
34 testPropertyEscapes(
35 /^\p{Script_Extensions=Tfng}+$/u,
36 matchSymbols,
37 "\\p{Script_Extensions=Tfng}"
38 );
39 testPropertyEscapes(
40 /^\p{scx=Tifinagh}+$/u,
41 matchSymbols,
42 "\\p{scx=Tifinagh}"
43 );
44 testPropertyEscapes(
45 /^\p{scx=Tfng}+$/u,
46 matchSymbols,
47 "\\p{scx=Tfng}"
48 );
49
50 const nonMatchSymbols = buildString({
51 loneCodePoints: [
52 0x000303,
53 0x000308
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x000301],
58 [0x000305, 0x000306],
59 [0x00030A, 0x002D2F],
60 [0x002D68, 0x002D6E],
61 [0x002D71, 0x002D7E],
62 [0x002D80, 0x00DBFF],
63 [0x00E000, 0x10FFFF]
64 ]
65 });
66 testPropertyEscapes(
67 /^\P{Script_Extensions=Tifinagh}+$/u,
68 nonMatchSymbols,
69 "\\P{Script_Extensions=Tifinagh}"
70 );
71 testPropertyEscapes(
72 /^\P{Script_Extensions=Tfng}+$/u,
73 nonMatchSymbols,
74 "\\P{Script_Extensions=Tfng}"
75 );
76 testPropertyEscapes(
77 /^\P{scx=Tifinagh}+$/u,
78 nonMatchSymbols,
79 "\\P{scx=Tifinagh}"
80 );
81 testPropertyEscapes(
82 /^\P{scx=Tfng}+$/u,
83 nonMatchSymbols,
84 "\\P{scx=Tfng}"
85 );
86
87 reportCompare(0, 0);