Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Tangut.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=Tangut`
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 0x016FE0
19 ],
20 ranges: [
21 [0x017000, 0x0187F7],
22 [0x018800, 0x018AFF],
23 [0x018D00, 0x018D08]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script=Tangut}+$/u,
28 matchSymbols,
29 "\\p{Script=Tangut}"
30 );
31 testPropertyEscapes(
32 /^\p{Script=Tang}+$/u,
33 matchSymbols,
34 "\\p{Script=Tang}"
35 );
36 testPropertyEscapes(
37 /^\p{sc=Tangut}+$/u,
38 matchSymbols,
39 "\\p{sc=Tangut}"
40 );
41 testPropertyEscapes(
42 /^\p{sc=Tang}+$/u,
43 matchSymbols,
44 "\\p{sc=Tang}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [],
49 ranges: [
50 [0x00DC00, 0x00DFFF],
51 [0x000000, 0x00DBFF],
52 [0x00E000, 0x016FDF],
53 [0x016FE1, 0x016FFF],
54 [0x0187F8, 0x0187FF],
55 [0x018B00, 0x018CFF],
56 [0x018D09, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script=Tangut}+$/u,
61 nonMatchSymbols,
62 "\\P{Script=Tangut}"
63 );
64 testPropertyEscapes(
65 /^\P{Script=Tang}+$/u,
66 nonMatchSymbols,
67 "\\P{Script=Tang}"
68 );
69 testPropertyEscapes(
70 /^\P{sc=Tangut}+$/u,
71 nonMatchSymbols,
72 "\\P{sc=Tangut}"
73 );
74 testPropertyEscapes(
75 /^\P{sc=Tang}+$/u,
76 nonMatchSymbols,
77 "\\P{sc=Tang}"
78 );
79
80 reportCompare(0, 0);