Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Malayalam.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=Malayalam`
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 ranges: [
19 [0x000D00, 0x000D0C],
20 [0x000D0E, 0x000D10],
21 [0x000D12, 0x000D44],
22 [0x000D46, 0x000D48],
23 [0x000D4A, 0x000D4F],
24 [0x000D54, 0x000D63],
25 [0x000D66, 0x000D7F]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script=Malayalam}+$/u,
30 matchSymbols,
31 "\\p{Script=Malayalam}"
32 );
33 testPropertyEscapes(
34 /^\p{Script=Mlym}+$/u,
35 matchSymbols,
36 "\\p{Script=Mlym}"
37 );
38 testPropertyEscapes(
39 /^\p{sc=Malayalam}+$/u,
40 matchSymbols,
41 "\\p{sc=Malayalam}"
42 );
43 testPropertyEscapes(
44 /^\p{sc=Mlym}+$/u,
45 matchSymbols,
46 "\\p{sc=Mlym}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [
51 0x000D0D,
52 0x000D11,
53 0x000D45,
54 0x000D49
55 ],
56 ranges: [
57 [0x00DC00, 0x00DFFF],
58 [0x000000, 0x000CFF],
59 [0x000D50, 0x000D53],
60 [0x000D64, 0x000D65],
61 [0x000D80, 0x00DBFF],
62 [0x00E000, 0x10FFFF]
63 ]
64 });
65 testPropertyEscapes(
66 /^\P{Script=Malayalam}+$/u,
67 nonMatchSymbols,
68 "\\P{Script=Malayalam}"
69 );
70 testPropertyEscapes(
71 /^\P{Script=Mlym}+$/u,
72 nonMatchSymbols,
73 "\\P{Script=Mlym}"
74 );
75 testPropertyEscapes(
76 /^\P{sc=Malayalam}+$/u,
77 nonMatchSymbols,
78 "\\P{sc=Malayalam}"
79 );
80 testPropertyEscapes(
81 /^\P{sc=Mlym}+$/u,
82 nonMatchSymbols,
83 "\\P{sc=Mlym}"
84 );
85
86 reportCompare(0, 0);