Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sunuwar.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=Sunuwar`
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 0x000303,
19 0x00030D,
20 0x000310,
21 0x00032D,
22 0x000331
23 ],
24 ranges: [
25 [0x000300, 0x000301],
26 [0x011BC0, 0x011BE1],
27 [0x011BF0, 0x011BF9]
28 ]
29 });
30 testPropertyEscapes(
31 /^\p{Script_Extensions=Sunuwar}+$/u,
32 matchSymbols,
33 "\\p{Script_Extensions=Sunuwar}"
34 );
35 testPropertyEscapes(
36 /^\p{Script_Extensions=Sunu}+$/u,
37 matchSymbols,
38 "\\p{Script_Extensions=Sunu}"
39 );
40 testPropertyEscapes(
41 /^\p{scx=Sunuwar}+$/u,
42 matchSymbols,
43 "\\p{scx=Sunuwar}"
44 );
45 testPropertyEscapes(
46 /^\p{scx=Sunu}+$/u,
47 matchSymbols,
48 "\\p{scx=Sunu}"
49 );
50
51 const nonMatchSymbols = buildString({
52 loneCodePoints: [
53 0x000302
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x0002FF],
58 [0x000304, 0x00030C],
59 [0x00030E, 0x00030F],
60 [0x000311, 0x00032C],
61 [0x00032E, 0x000330],
62 [0x000332, 0x00DBFF],
63 [0x00E000, 0x011BBF],
64 [0x011BE2, 0x011BEF],
65 [0x011BFA, 0x10FFFF]
66 ]
67 });
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Sunuwar}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Sunuwar}"
72 );
73 testPropertyEscapes(
74 /^\P{Script_Extensions=Sunu}+$/u,
75 nonMatchSymbols,
76 "\\P{Script_Extensions=Sunu}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Sunuwar}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Sunuwar}"
82 );
83 testPropertyEscapes(
84 /^\P{scx=Sunu}+$/u,
85 nonMatchSymbols,
86 "\\P{scx=Sunu}"
87 );
88
89 reportCompare(0, 0);