Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Dash.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 `Dash`
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 0x00002D,
19 0x00058A,
20 0x0005BE,
21 0x001400,
22 0x001806,
23 0x002053,
24 0x00207B,
25 0x00208B,
26 0x002212,
27 0x002E17,
28 0x002E1A,
29 0x002E40,
30 0x002E5D,
31 0x00301C,
32 0x003030,
33 0x0030A0,
34 0x00FE58,
35 0x00FE63,
36 0x00FF0D,
37 0x010D6E,
38 0x010EAD
39 ],
40 ranges: [
41 [0x002010, 0x002015],
42 [0x002E3A, 0x002E3B],
43 [0x00FE31, 0x00FE32]
44 ]
45 });
46 testPropertyEscapes(
47 /^\p{Dash}+$/u,
48 matchSymbols,
49 "\\p{Dash}"
50 );
51
52 const nonMatchSymbols = buildString({
53 loneCodePoints: [],
54 ranges: [
55 [0x00DC00, 0x00DFFF],
56 [0x000000, 0x00002C],
57 [0x00002E, 0x000589],
58 [0x00058B, 0x0005BD],
59 [0x0005BF, 0x0013FF],
60 [0x001401, 0x001805],
61 [0x001807, 0x00200F],
62 [0x002016, 0x002052],
63 [0x002054, 0x00207A],
64 [0x00207C, 0x00208A],
65 [0x00208C, 0x002211],
66 [0x002213, 0x002E16],
67 [0x002E18, 0x002E19],
68 [0x002E1B, 0x002E39],
69 [0x002E3C, 0x002E3F],
70 [0x002E41, 0x002E5C],
71 [0x002E5E, 0x00301B],
72 [0x00301D, 0x00302F],
73 [0x003031, 0x00309F],
74 [0x0030A1, 0x00DBFF],
75 [0x00E000, 0x00FE30],
76 [0x00FE33, 0x00FE57],
77 [0x00FE59, 0x00FE62],
78 [0x00FE64, 0x00FF0C],
79 [0x00FF0E, 0x010D6D],
80 [0x010D6F, 0x010EAC],
81 [0x010EAE, 0x10FFFF]
82 ]
83 });
84 testPropertyEscapes(
85 /^\P{Dash}+$/u,
86 nonMatchSymbols,
87 "\\P{Dash}"
88 );
89
90 reportCompare(0, 0);