Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Multani.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=Multani`
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 0x011288
19 ],
20 ranges: [
21 [0x000A66, 0x000A6F],
22 [0x011280, 0x011286],
23 [0x01128A, 0x01128D],
24 [0x01128F, 0x01129D],
25 [0x01129F, 0x0112A9]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script_Extensions=Multani}+$/u,
30 matchSymbols,
31 "\\p{Script_Extensions=Multani}"
32 );
33 testPropertyEscapes(
34 /^\p{Script_Extensions=Mult}+$/u,
35 matchSymbols,
36 "\\p{Script_Extensions=Mult}"
37 );
38 testPropertyEscapes(
39 /^\p{scx=Multani}+$/u,
40 matchSymbols,
41 "\\p{scx=Multani}"
42 );
43 testPropertyEscapes(
44 /^\p{scx=Mult}+$/u,
45 matchSymbols,
46 "\\p{scx=Mult}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [
51 0x011287,
52 0x011289,
53 0x01128E,
54 0x01129E
55 ],
56 ranges: [
57 [0x00DC00, 0x00DFFF],
58 [0x000000, 0x000A65],
59 [0x000A70, 0x00DBFF],
60 [0x00E000, 0x01127F],
61 [0x0112AA, 0x10FFFF]
62 ]
63 });
64 testPropertyEscapes(
65 /^\P{Script_Extensions=Multani}+$/u,
66 nonMatchSymbols,
67 "\\P{Script_Extensions=Multani}"
68 );
69 testPropertyEscapes(
70 /^\P{Script_Extensions=Mult}+$/u,
71 nonMatchSymbols,
72 "\\P{Script_Extensions=Mult}"
73 );
74 testPropertyEscapes(
75 /^\P{scx=Multani}+$/u,
76 nonMatchSymbols,
77 "\\P{scx=Multani}"
78 );
79 testPropertyEscapes(
80 /^\P{scx=Mult}+$/u,
81 nonMatchSymbols,
82 "\\P{scx=Mult}"
83 );
84
85 reportCompare(0, 0);