Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Quotation_Mark.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 `Quotation_Mark`
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 0x000022,
19 0x000027,
20 0x0000AB,
21 0x0000BB,
22 0x002E42,
23 0x00FF02,
24 0x00FF07
25 ],
26 ranges: [
27 [0x002018, 0x00201F],
28 [0x002039, 0x00203A],
29 [0x00300C, 0x00300F],
30 [0x00301D, 0x00301F],
31 [0x00FE41, 0x00FE44],
32 [0x00FF62, 0x00FF63]
33 ]
34 });
35 testPropertyEscapes(
36 /^\p{Quotation_Mark}+$/u,
37 matchSymbols,
38 "\\p{Quotation_Mark}"
39 );
40 testPropertyEscapes(
41 /^\p{QMark}+$/u,
42 matchSymbols,
43 "\\p{QMark}"
44 );
45
46 const nonMatchSymbols = buildString({
47 loneCodePoints: [],
48 ranges: [
49 [0x00DC00, 0x00DFFF],
50 [0x000000, 0x000021],
51 [0x000023, 0x000026],
52 [0x000028, 0x0000AA],
53 [0x0000AC, 0x0000BA],
54 [0x0000BC, 0x002017],
55 [0x002020, 0x002038],
56 [0x00203B, 0x002E41],
57 [0x002E43, 0x00300B],
58 [0x003010, 0x00301C],
59 [0x003020, 0x00DBFF],
60 [0x00E000, 0x00FE40],
61 [0x00FE45, 0x00FF01],
62 [0x00FF03, 0x00FF06],
63 [0x00FF08, 0x00FF61],
64 [0x00FF64, 0x10FFFF]
65 ]
66 });
67 testPropertyEscapes(
68 /^\P{Quotation_Mark}+$/u,
69 nonMatchSymbols,
70 "\\P{Quotation_Mark}"
71 );
72 testPropertyEscapes(
73 /^\P{QMark}+$/u,
74 nonMatchSymbols,
75 "\\P{QMark}"
76 );
77
78 reportCompare(0, 0);