Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Mahajani.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=Mahajani`
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 ],
20 ranges: [
21 [0x000964, 0x00096F],
22 [0x00A830, 0x00A839],
23 [0x011150, 0x011176]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script_Extensions=Mahajani}+$/u,
28 matchSymbols,
29 "\\p{Script_Extensions=Mahajani}"
30 );
31 testPropertyEscapes(
32 /^\p{Script_Extensions=Mahj}+$/u,
33 matchSymbols,
34 "\\p{Script_Extensions=Mahj}"
35 );
36 testPropertyEscapes(
37 /^\p{scx=Mahajani}+$/u,
38 matchSymbols,
39 "\\p{scx=Mahajani}"
40 );
41 testPropertyEscapes(
42 /^\p{scx=Mahj}+$/u,
43 matchSymbols,
44 "\\p{scx=Mahj}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [],
49 ranges: [
50 [0x00DC00, 0x00DFFF],
51 [0x000000, 0x0000B6],
52 [0x0000B8, 0x000963],
53 [0x000970, 0x00A82F],
54 [0x00A83A, 0x00DBFF],
55 [0x00E000, 0x01114F],
56 [0x011177, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script_Extensions=Mahajani}+$/u,
61 nonMatchSymbols,
62 "\\P{Script_Extensions=Mahajani}"
63 );
64 testPropertyEscapes(
65 /^\P{Script_Extensions=Mahj}+$/u,
66 nonMatchSymbols,
67 "\\P{Script_Extensions=Mahj}"
68 );
69 testPropertyEscapes(
70 /^\P{scx=Mahajani}+$/u,
71 nonMatchSymbols,
72 "\\P{scx=Mahajani}"
73 );
74 testPropertyEscapes(
75 /^\P{scx=Mahj}+$/u,
76 nonMatchSymbols,
77 "\\P{scx=Mahj}"
78 );
79
80 reportCompare(0, 0);