Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Hiragana.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=Hiragana`
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 0x003037,
19 0x00FF70,
20 0x01B132,
21 0x01F200
22 ],
23 ranges: [
24 [0x003001, 0x003003],
25 [0x003008, 0x003011],
26 [0x003013, 0x00301F],
27 [0x003030, 0x003035],
28 [0x00303C, 0x00303D],
29 [0x003041, 0x003096],
30 [0x003099, 0x0030A0],
31 [0x0030FB, 0x0030FC],
32 [0x00FE45, 0x00FE46],
33 [0x00FF61, 0x00FF65],
34 [0x00FF9E, 0x00FF9F],
35 [0x01B001, 0x01B11F],
36 [0x01B150, 0x01B152]
37 ]
38 });
39 testPropertyEscapes(
40 /^\p{Script_Extensions=Hiragana}+$/u,
41 matchSymbols,
42 "\\p{Script_Extensions=Hiragana}"
43 );
44 testPropertyEscapes(
45 /^\p{Script_Extensions=Hira}+$/u,
46 matchSymbols,
47 "\\p{Script_Extensions=Hira}"
48 );
49 testPropertyEscapes(
50 /^\p{scx=Hiragana}+$/u,
51 matchSymbols,
52 "\\p{scx=Hiragana}"
53 );
54 testPropertyEscapes(
55 /^\p{scx=Hira}+$/u,
56 matchSymbols,
57 "\\p{scx=Hira}"
58 );
59
60 const nonMatchSymbols = buildString({
61 loneCodePoints: [
62 0x003012,
63 0x003036
64 ],
65 ranges: [
66 [0x00DC00, 0x00DFFF],
67 [0x000000, 0x003000],
68 [0x003004, 0x003007],
69 [0x003020, 0x00302F],
70 [0x003038, 0x00303B],
71 [0x00303E, 0x003040],
72 [0x003097, 0x003098],
73 [0x0030A1, 0x0030FA],
74 [0x0030FD, 0x00DBFF],
75 [0x00E000, 0x00FE44],
76 [0x00FE47, 0x00FF60],
77 [0x00FF66, 0x00FF6F],
78 [0x00FF71, 0x00FF9D],
79 [0x00FFA0, 0x01B000],
80 [0x01B120, 0x01B131],
81 [0x01B133, 0x01B14F],
82 [0x01B153, 0x01F1FF],
83 [0x01F201, 0x10FFFF]
84 ]
85 });
86 testPropertyEscapes(
87 /^\P{Script_Extensions=Hiragana}+$/u,
88 nonMatchSymbols,
89 "\\P{Script_Extensions=Hiragana}"
90 );
91 testPropertyEscapes(
92 /^\P{Script_Extensions=Hira}+$/u,
93 nonMatchSymbols,
94 "\\P{Script_Extensions=Hira}"
95 );
96 testPropertyEscapes(
97 /^\P{scx=Hiragana}+$/u,
98 nonMatchSymbols,
99 "\\P{scx=Hiragana}"
100 );
101 testPropertyEscapes(
102 /^\P{scx=Hira}+$/u,
103 nonMatchSymbols,
104 "\\P{scx=Hira}"
105 );
106
107 reportCompare(0, 0);