Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Garay.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=Garay`
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 0x00060C,
19 0x00061B,
20 0x00061F
21 ],
22 ranges: [
23 [0x010D40, 0x010D65],
24 [0x010D69, 0x010D85],
25 [0x010D8E, 0x010D8F]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script_Extensions=Garay}+$/u,
30 matchSymbols,
31 "\\p{Script_Extensions=Garay}"
32 );
33 testPropertyEscapes(
34 /^\p{Script_Extensions=Gara}+$/u,
35 matchSymbols,
36 "\\p{Script_Extensions=Gara}"
37 );
38 testPropertyEscapes(
39 /^\p{scx=Garay}+$/u,
40 matchSymbols,
41 "\\p{scx=Garay}"
42 );
43 testPropertyEscapes(
44 /^\p{scx=Gara}+$/u,
45 matchSymbols,
46 "\\p{scx=Gara}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [],
51 ranges: [
52 [0x00DC00, 0x00DFFF],
53 [0x000000, 0x00060B],
54 [0x00060D, 0x00061A],
55 [0x00061C, 0x00061E],
56 [0x000620, 0x00DBFF],
57 [0x00E000, 0x010D3F],
58 [0x010D66, 0x010D68],
59 [0x010D86, 0x010D8D],
60 [0x010D90, 0x10FFFF]
61 ]
62 });
63 testPropertyEscapes(
64 /^\P{Script_Extensions=Garay}+$/u,
65 nonMatchSymbols,
66 "\\P{Script_Extensions=Garay}"
67 );
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Gara}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Gara}"
72 );
73 testPropertyEscapes(
74 /^\P{scx=Garay}+$/u,
75 nonMatchSymbols,
76 "\\P{scx=Garay}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Gara}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Gara}"
82 );
83
84 reportCompare(0, 0);