Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Bopomofo.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=Bopomofo`
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 0x0002C7,
19 0x0002D9,
20 0x003030,
21 0x003037,
22 0x0030FB
23 ],
24 ranges: [
25 [0x0002C9, 0x0002CB],
26 [0x0002EA, 0x0002EB],
27 [0x003001, 0x003003],
28 [0x003008, 0x003011],
29 [0x003013, 0x00301F],
30 [0x00302A, 0x00302D],
31 [0x003105, 0x00312F],
32 [0x0031A0, 0x0031BF],
33 [0x00FE45, 0x00FE46],
34 [0x00FF61, 0x00FF65]
35 ]
36 });
37 testPropertyEscapes(
38 /^\p{Script_Extensions=Bopomofo}+$/u,
39 matchSymbols,
40 "\\p{Script_Extensions=Bopomofo}"
41 );
42 testPropertyEscapes(
43 /^\p{Script_Extensions=Bopo}+$/u,
44 matchSymbols,
45 "\\p{Script_Extensions=Bopo}"
46 );
47 testPropertyEscapes(
48 /^\p{scx=Bopomofo}+$/u,
49 matchSymbols,
50 "\\p{scx=Bopomofo}"
51 );
52 testPropertyEscapes(
53 /^\p{scx=Bopo}+$/u,
54 matchSymbols,
55 "\\p{scx=Bopo}"
56 );
57
58 const nonMatchSymbols = buildString({
59 loneCodePoints: [
60 0x0002C8,
61 0x003012
62 ],
63 ranges: [
64 [0x00DC00, 0x00DFFF],
65 [0x000000, 0x0002C6],
66 [0x0002CC, 0x0002D8],
67 [0x0002DA, 0x0002E9],
68 [0x0002EC, 0x003000],
69 [0x003004, 0x003007],
70 [0x003020, 0x003029],
71 [0x00302E, 0x00302F],
72 [0x003031, 0x003036],
73 [0x003038, 0x0030FA],
74 [0x0030FC, 0x003104],
75 [0x003130, 0x00319F],
76 [0x0031C0, 0x00DBFF],
77 [0x00E000, 0x00FE44],
78 [0x00FE47, 0x00FF60],
79 [0x00FF66, 0x10FFFF]
80 ]
81 });
82 testPropertyEscapes(
83 /^\P{Script_Extensions=Bopomofo}+$/u,
84 nonMatchSymbols,
85 "\\P{Script_Extensions=Bopomofo}"
86 );
87 testPropertyEscapes(
88 /^\P{Script_Extensions=Bopo}+$/u,
89 nonMatchSymbols,
90 "\\P{Script_Extensions=Bopo}"
91 );
92 testPropertyEscapes(
93 /^\P{scx=Bopomofo}+$/u,
94 nonMatchSymbols,
95 "\\P{scx=Bopomofo}"
96 );
97 testPropertyEscapes(
98 /^\P{scx=Bopo}+$/u,
99 nonMatchSymbols,
100 "\\P{scx=Bopo}"
101 );
102
103 reportCompare(0, 0);