Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Katakana.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=Katakana`
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 0x000305,
19 0x000323,
20 0x003037,
21 0x01B000,
22 0x01B155
23 ],
24 ranges: [
25 [0x003001, 0x003003],
26 [0x003008, 0x003011],
27 [0x003013, 0x00301F],
28 [0x003030, 0x003035],
29 [0x00303C, 0x00303D],
30 [0x003099, 0x00309C],
31 [0x0030A0, 0x0030FF],
32 [0x0031F0, 0x0031FF],
33 [0x0032D0, 0x0032FE],
34 [0x003300, 0x003357],
35 [0x00FE45, 0x00FE46],
36 [0x00FF61, 0x00FF9F],
37 [0x01AFF0, 0x01AFF3],
38 [0x01AFF5, 0x01AFFB],
39 [0x01AFFD, 0x01AFFE],
40 [0x01B120, 0x01B122],
41 [0x01B164, 0x01B167]
42 ]
43 });
44 testPropertyEscapes(
45 /^\p{Script_Extensions=Katakana}+$/u,
46 matchSymbols,
47 "\\p{Script_Extensions=Katakana}"
48 );
49 testPropertyEscapes(
50 /^\p{Script_Extensions=Kana}+$/u,
51 matchSymbols,
52 "\\p{Script_Extensions=Kana}"
53 );
54 testPropertyEscapes(
55 /^\p{scx=Katakana}+$/u,
56 matchSymbols,
57 "\\p{scx=Katakana}"
58 );
59 testPropertyEscapes(
60 /^\p{scx=Kana}+$/u,
61 matchSymbols,
62 "\\p{scx=Kana}"
63 );
64
65 const nonMatchSymbols = buildString({
66 loneCodePoints: [
67 0x003012,
68 0x003036,
69 0x0032FF,
70 0x01AFF4,
71 0x01AFFC,
72 0x01AFFF
73 ],
74 ranges: [
75 [0x00DC00, 0x00DFFF],
76 [0x000000, 0x000304],
77 [0x000306, 0x000322],
78 [0x000324, 0x003000],
79 [0x003004, 0x003007],
80 [0x003020, 0x00302F],
81 [0x003038, 0x00303B],
82 [0x00303E, 0x003098],
83 [0x00309D, 0x00309F],
84 [0x003100, 0x0031EF],
85 [0x003200, 0x0032CF],
86 [0x003358, 0x00DBFF],
87 [0x00E000, 0x00FE44],
88 [0x00FE47, 0x00FF60],
89 [0x00FFA0, 0x01AFEF],
90 [0x01B001, 0x01B11F],
91 [0x01B123, 0x01B154],
92 [0x01B156, 0x01B163],
93 [0x01B168, 0x10FFFF]
94 ]
95 });
96 testPropertyEscapes(
97 /^\P{Script_Extensions=Katakana}+$/u,
98 nonMatchSymbols,
99 "\\P{Script_Extensions=Katakana}"
100 );
101 testPropertyEscapes(
102 /^\P{Script_Extensions=Kana}+$/u,
103 nonMatchSymbols,
104 "\\P{Script_Extensions=Kana}"
105 );
106 testPropertyEscapes(
107 /^\P{scx=Katakana}+$/u,
108 nonMatchSymbols,
109 "\\P{scx=Katakana}"
110 );
111 testPropertyEscapes(
112 /^\P{scx=Kana}+$/u,
113 nonMatchSymbols,
114 "\\P{scx=Kana}"
115 );
116
117 reportCompare(0, 0);