Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Syriac.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=Syriac`
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 [0x000700, 0x00070D],
20 [0x00070F, 0x00074A],
21 [0x00074D, 0x00074F],
22 [0x000860, 0x00086A]
23 ]
24 });
25 testPropertyEscapes(
26 /^\p{Script=Syriac}+$/u,
27 matchSymbols,
28 "\\p{Script=Syriac}"
29 );
30 testPropertyEscapes(
31 /^\p{Script=Syrc}+$/u,
32 matchSymbols,
33 "\\p{Script=Syrc}"
34 );
35 testPropertyEscapes(
36 /^\p{sc=Syriac}+$/u,
37 matchSymbols,
38 "\\p{sc=Syriac}"
39 );
40 testPropertyEscapes(
41 /^\p{sc=Syrc}+$/u,
42 matchSymbols,
43 "\\p{sc=Syrc}"
44 );
45
46 const nonMatchSymbols = buildString({
47 loneCodePoints: [
48 0x00070E
49 ],
50 ranges: [
51 [0x00DC00, 0x00DFFF],
52 [0x000000, 0x0006FF],
53 [0x00074B, 0x00074C],
54 [0x000750, 0x00085F],
55 [0x00086B, 0x00DBFF],
56 [0x00E000, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script=Syriac}+$/u,
61 nonMatchSymbols,
62 "\\P{Script=Syriac}"
63 );
64 testPropertyEscapes(
65 /^\P{Script=Syrc}+$/u,
66 nonMatchSymbols,
67 "\\P{Script=Syrc}"
68 );
69 testPropertyEscapes(
70 /^\P{sc=Syriac}+$/u,
71 nonMatchSymbols,
72 "\\P{sc=Syriac}"
73 );
74 testPropertyEscapes(
75 /^\P{sc=Syrc}+$/u,
76 nonMatchSymbols,
77 "\\P{sc=Syrc}"
78 );
79
80 reportCompare(0, 0);