Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Dives_Akuru.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=Dives_Akuru`
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 0x011909
19 ],
20 ranges: [
21 [0x011900, 0x011906],
22 [0x01190C, 0x011913],
23 [0x011915, 0x011916],
24 [0x011918, 0x011935],
25 [0x011937, 0x011938],
26 [0x01193B, 0x011946],
27 [0x011950, 0x011959]
28 ]
29 });
30 testPropertyEscapes(
31 /^\p{Script=Dives_Akuru}+$/u,
32 matchSymbols,
33 "\\p{Script=Dives_Akuru}"
34 );
35 testPropertyEscapes(
36 /^\p{Script=Diak}+$/u,
37 matchSymbols,
38 "\\p{Script=Diak}"
39 );
40 testPropertyEscapes(
41 /^\p{sc=Dives_Akuru}+$/u,
42 matchSymbols,
43 "\\p{sc=Dives_Akuru}"
44 );
45 testPropertyEscapes(
46 /^\p{sc=Diak}+$/u,
47 matchSymbols,
48 "\\p{sc=Diak}"
49 );
50
51 const nonMatchSymbols = buildString({
52 loneCodePoints: [
53 0x011914,
54 0x011917,
55 0x011936
56 ],
57 ranges: [
58 [0x00DC00, 0x00DFFF],
59 [0x000000, 0x00DBFF],
60 [0x00E000, 0x0118FF],
61 [0x011907, 0x011908],
62 [0x01190A, 0x01190B],
63 [0x011939, 0x01193A],
64 [0x011947, 0x01194F],
65 [0x01195A, 0x10FFFF]
66 ]
67 });
68 testPropertyEscapes(
69 /^\P{Script=Dives_Akuru}+$/u,
70 nonMatchSymbols,
71 "\\P{Script=Dives_Akuru}"
72 );
73 testPropertyEscapes(
74 /^\P{Script=Diak}+$/u,
75 nonMatchSymbols,
76 "\\P{Script=Diak}"
77 );
78 testPropertyEscapes(
79 /^\P{sc=Dives_Akuru}+$/u,
80 nonMatchSymbols,
81 "\\P{sc=Dives_Akuru}"
82 );
83 testPropertyEscapes(
84 /^\P{sc=Diak}+$/u,
85 nonMatchSymbols,
86 "\\P{sc=Diak}"
87 );
88
89 reportCompare(0, 0);