Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Newa.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=Newa`
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 [0x011400, 0x01145B],
20 [0x01145D, 0x011461]
21 ]
22 });
23 testPropertyEscapes(
24 /^\p{Script=Newa}+$/u,
25 matchSymbols,
26 "\\p{Script=Newa}"
27 );
28 testPropertyEscapes(
29 /^\p{Script=Newa}+$/u,
30 matchSymbols,
31 "\\p{Script=Newa}"
32 );
33 testPropertyEscapes(
34 /^\p{sc=Newa}+$/u,
35 matchSymbols,
36 "\\p{sc=Newa}"
37 );
38 testPropertyEscapes(
39 /^\p{sc=Newa}+$/u,
40 matchSymbols,
41 "\\p{sc=Newa}"
42 );
43
44 const nonMatchSymbols = buildString({
45 loneCodePoints: [
46 0x01145C
47 ],
48 ranges: [
49 [0x00DC00, 0x00DFFF],
50 [0x000000, 0x00DBFF],
51 [0x00E000, 0x0113FF],
52 [0x011462, 0x10FFFF]
53 ]
54 });
55 testPropertyEscapes(
56 /^\P{Script=Newa}+$/u,
57 nonMatchSymbols,
58 "\\P{Script=Newa}"
59 );
60 testPropertyEscapes(
61 /^\P{Script=Newa}+$/u,
62 nonMatchSymbols,
63 "\\P{Script=Newa}"
64 );
65 testPropertyEscapes(
66 /^\P{sc=Newa}+$/u,
67 nonMatchSymbols,
68 "\\P{sc=Newa}"
69 );
70 testPropertyEscapes(
71 /^\P{sc=Newa}+$/u,
72 nonMatchSymbols,
73 "\\P{sc=Newa}"
74 );
75
76 reportCompare(0, 0);