Debian Codegraph @

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