Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Carian.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=Carian`
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 0x0000B7,
19 0x00205A,
20 0x00205D,
21 0x002E31
22 ],
23 ranges: [
24 [0x0102A0, 0x0102D0]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Script_Extensions=Carian}+$/u,
29 matchSymbols,
30 "\\p{Script_Extensions=Carian}"
31 );
32 testPropertyEscapes(
33 /^\p{Script_Extensions=Cari}+$/u,
34 matchSymbols,
35 "\\p{Script_Extensions=Cari}"
36 );
37 testPropertyEscapes(
38 /^\p{scx=Carian}+$/u,
39 matchSymbols,
40 "\\p{scx=Carian}"
41 );
42 testPropertyEscapes(
43 /^\p{scx=Cari}+$/u,
44 matchSymbols,
45 "\\p{scx=Cari}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [],
50 ranges: [
51 [0x00DC00, 0x00DFFF],
52 [0x000000, 0x0000B6],
53 [0x0000B8, 0x002059],
54 [0x00205B, 0x00205C],
55 [0x00205E, 0x002E30],
56 [0x002E32, 0x00DBFF],
57 [0x00E000, 0x01029F],
58 [0x0102D1, 0x10FFFF]
59 ]
60 });
61 testPropertyEscapes(
62 /^\P{Script_Extensions=Carian}+$/u,
63 nonMatchSymbols,
64 "\\P{Script_Extensions=Carian}"
65 );
66 testPropertyEscapes(
67 /^\P{Script_Extensions=Cari}+$/u,
68 nonMatchSymbols,
69 "\\P{Script_Extensions=Cari}"
70 );
71 testPropertyEscapes(
72 /^\P{scx=Carian}+$/u,
73 nonMatchSymbols,
74 "\\P{scx=Carian}"
75 );
76 testPropertyEscapes(
77 /^\P{scx=Cari}+$/u,
78 nonMatchSymbols,
79 "\\P{scx=Cari}"
80 );
81
82 reportCompare(0, 0);