Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Cuneiform.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=Cuneiform`
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 [0x012000, 0x012399],
20 [0x012400, 0x01246E],
21 [0x012470, 0x012474],
22 [0x012480, 0x012543]
23 ]
24 });
25 testPropertyEscapes(
26 /^\p{Script=Cuneiform}+$/u,
27 matchSymbols,
28 "\\p{Script=Cuneiform}"
29 );
30 testPropertyEscapes(
31 /^\p{Script=Xsux}+$/u,
32 matchSymbols,
33 "\\p{Script=Xsux}"
34 );
35 testPropertyEscapes(
36 /^\p{sc=Cuneiform}+$/u,
37 matchSymbols,
38 "\\p{sc=Cuneiform}"
39 );
40 testPropertyEscapes(
41 /^\p{sc=Xsux}+$/u,
42 matchSymbols,
43 "\\p{sc=Xsux}"
44 );
45
46 const nonMatchSymbols = buildString({
47 loneCodePoints: [
48 0x01246F
49 ],
50 ranges: [
51 [0x00DC00, 0x00DFFF],
52 [0x000000, 0x00DBFF],
53 [0x00E000, 0x011FFF],
54 [0x01239A, 0x0123FF],
55 [0x012475, 0x01247F],
56 [0x012544, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script=Cuneiform}+$/u,
61 nonMatchSymbols,
62 "\\P{Script=Cuneiform}"
63 );
64 testPropertyEscapes(
65 /^\P{Script=Xsux}+$/u,
66 nonMatchSymbols,
67 "\\P{Script=Xsux}"
68 );
69 testPropertyEscapes(
70 /^\P{sc=Cuneiform}+$/u,
71 nonMatchSymbols,
72 "\\P{sc=Cuneiform}"
73 );
74 testPropertyEscapes(
75 /^\P{sc=Xsux}+$/u,
76 nonMatchSymbols,
77 "\\P{sc=Xsux}"
78 );
79
80 reportCompare(0, 0);