Debian Codegraph @

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