Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Duployan.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=Duployan`
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 [0x01BC00, 0x01BC6A],
20 [0x01BC70, 0x01BC7C],
21 [0x01BC80, 0x01BC88],
22 [0x01BC90, 0x01BC99],
23 [0x01BC9C, 0x01BC9F]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script=Duployan}+$/u,
28 matchSymbols,
29 "\\p{Script=Duployan}"
30 );
31 testPropertyEscapes(
32 /^\p{Script=Dupl}+$/u,
33 matchSymbols,
34 "\\p{Script=Dupl}"
35 );
36 testPropertyEscapes(
37 /^\p{sc=Duployan}+$/u,
38 matchSymbols,
39 "\\p{sc=Duployan}"
40 );
41 testPropertyEscapes(
42 /^\p{sc=Dupl}+$/u,
43 matchSymbols,
44 "\\p{sc=Dupl}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [],
49 ranges: [
50 [0x00DC00, 0x00DFFF],
51 [0x000000, 0x00DBFF],
52 [0x00E000, 0x01BBFF],
53 [0x01BC6B, 0x01BC6F],
54 [0x01BC7D, 0x01BC7F],
55 [0x01BC89, 0x01BC8F],
56 [0x01BC9A, 0x01BC9B],
57 [0x01BCA0, 0x10FFFF]
58 ]
59 });
60 testPropertyEscapes(
61 /^\P{Script=Duployan}+$/u,
62 nonMatchSymbols,
63 "\\P{Script=Duployan}"
64 );
65 testPropertyEscapes(
66 /^\P{Script=Dupl}+$/u,
67 nonMatchSymbols,
68 "\\P{Script=Dupl}"
69 );
70 testPropertyEscapes(
71 /^\P{sc=Duployan}+$/u,
72 nonMatchSymbols,
73 "\\P{sc=Duployan}"
74 );
75 testPropertyEscapes(
76 /^\P{sc=Dupl}+$/u,
77 nonMatchSymbols,
78 "\\P{sc=Dupl}"
79 );
80
81 reportCompare(0, 0);