Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Yezidi.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=Yezidi`
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 [0x000660, 0x000669],
24 [0x010E80, 0x010EA9],
25 [0x010EAB, 0x010EAD],
26 [0x010EB0, 0x010EB1]
27 ]
28 });
29 testPropertyEscapes(
30 /^\p{Script_Extensions=Yezidi}+$/u,
31 matchSymbols,
32 "\\p{Script_Extensions=Yezidi}"
33 );
34 testPropertyEscapes(
35 /^\p{Script_Extensions=Yezi}+$/u,
36 matchSymbols,
37 "\\p{Script_Extensions=Yezi}"
38 );
39 testPropertyEscapes(
40 /^\p{scx=Yezidi}+$/u,
41 matchSymbols,
42 "\\p{scx=Yezidi}"
43 );
44 testPropertyEscapes(
45 /^\p{scx=Yezi}+$/u,
46 matchSymbols,
47 "\\p{scx=Yezi}"
48 );
49
50 const nonMatchSymbols = buildString({
51 loneCodePoints: [
52 0x010EAA
53 ],
54 ranges: [
55 [0x00DC00, 0x00DFFF],
56 [0x000000, 0x00060B],
57 [0x00060D, 0x00061A],
58 [0x00061C, 0x00061E],
59 [0x000620, 0x00065F],
60 [0x00066A, 0x00DBFF],
61 [0x00E000, 0x010E7F],
62 [0x010EAE, 0x010EAF],
63 [0x010EB2, 0x10FFFF]
64 ]
65 });
66 testPropertyEscapes(
67 /^\P{Script_Extensions=Yezidi}+$/u,
68 nonMatchSymbols,
69 "\\P{Script_Extensions=Yezidi}"
70 );
71 testPropertyEscapes(
72 /^\P{Script_Extensions=Yezi}+$/u,
73 nonMatchSymbols,
74 "\\P{Script_Extensions=Yezi}"
75 );
76 testPropertyEscapes(
77 /^\P{scx=Yezidi}+$/u,
78 nonMatchSymbols,
79 "\\P{scx=Yezidi}"
80 );
81 testPropertyEscapes(
82 /^\P{scx=Yezi}+$/u,
83 nonMatchSymbols,
84 "\\P{scx=Yezi}"
85 );
86
87 reportCompare(0, 0);