Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Hebrew.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=Hebrew`
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 0x00FB3E
19 ],
20 ranges: [
21 [0x000307, 0x000308],
22 [0x000591, 0x0005C7],
23 [0x0005D0, 0x0005EA],
24 [0x0005EF, 0x0005F4],
25 [0x00FB1D, 0x00FB36],
26 [0x00FB38, 0x00FB3C],
27 [0x00FB40, 0x00FB41],
28 [0x00FB43, 0x00FB44],
29 [0x00FB46, 0x00FB4F]
30 ]
31 });
32 testPropertyEscapes(
33 /^\p{Script_Extensions=Hebrew}+$/u,
34 matchSymbols,
35 "\\p{Script_Extensions=Hebrew}"
36 );
37 testPropertyEscapes(
38 /^\p{Script_Extensions=Hebr}+$/u,
39 matchSymbols,
40 "\\p{Script_Extensions=Hebr}"
41 );
42 testPropertyEscapes(
43 /^\p{scx=Hebrew}+$/u,
44 matchSymbols,
45 "\\p{scx=Hebrew}"
46 );
47 testPropertyEscapes(
48 /^\p{scx=Hebr}+$/u,
49 matchSymbols,
50 "\\p{scx=Hebr}"
51 );
52
53 const nonMatchSymbols = buildString({
54 loneCodePoints: [
55 0x00FB37,
56 0x00FB3D,
57 0x00FB3F,
58 0x00FB42,
59 0x00FB45
60 ],
61 ranges: [
62 [0x00DC00, 0x00DFFF],
63 [0x000000, 0x000306],
64 [0x000309, 0x000590],
65 [0x0005C8, 0x0005CF],
66 [0x0005EB, 0x0005EE],
67 [0x0005F5, 0x00DBFF],
68 [0x00E000, 0x00FB1C],
69 [0x00FB50, 0x10FFFF]
70 ]
71 });
72 testPropertyEscapes(
73 /^\P{Script_Extensions=Hebrew}+$/u,
74 nonMatchSymbols,
75 "\\P{Script_Extensions=Hebrew}"
76 );
77 testPropertyEscapes(
78 /^\P{Script_Extensions=Hebr}+$/u,
79 nonMatchSymbols,
80 "\\P{Script_Extensions=Hebr}"
81 );
82 testPropertyEscapes(
83 /^\P{scx=Hebrew}+$/u,
84 nonMatchSymbols,
85 "\\P{scx=Hebrew}"
86 );
87 testPropertyEscapes(
88 /^\P{scx=Hebr}+$/u,
89 nonMatchSymbols,
90 "\\P{scx=Hebr}"
91 );
92
93 reportCompare(0, 0);