Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Tirhuta.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=Tirhuta`
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 0x001CF2
19 ],
20 ranges: [
21 [0x000951, 0x000952],
22 [0x000964, 0x000965],
23 [0x00A830, 0x00A839],
24 [0x011480, 0x0114C7],
25 [0x0114D0, 0x0114D9]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script_Extensions=Tirhuta}+$/u,
30 matchSymbols,
31 "\\p{Script_Extensions=Tirhuta}"
32 );
33 testPropertyEscapes(
34 /^\p{Script_Extensions=Tirh}+$/u,
35 matchSymbols,
36 "\\p{Script_Extensions=Tirh}"
37 );
38 testPropertyEscapes(
39 /^\p{scx=Tirhuta}+$/u,
40 matchSymbols,
41 "\\p{scx=Tirhuta}"
42 );
43 testPropertyEscapes(
44 /^\p{scx=Tirh}+$/u,
45 matchSymbols,
46 "\\p{scx=Tirh}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [],
51 ranges: [
52 [0x00DC00, 0x00DFFF],
53 [0x000000, 0x000950],
54 [0x000953, 0x000963],
55 [0x000966, 0x001CF1],
56 [0x001CF3, 0x00A82F],
57 [0x00A83A, 0x00DBFF],
58 [0x00E000, 0x01147F],
59 [0x0114C8, 0x0114CF],
60 [0x0114DA, 0x10FFFF]
61 ]
62 });
63 testPropertyEscapes(
64 /^\P{Script_Extensions=Tirhuta}+$/u,
65 nonMatchSymbols,
66 "\\P{Script_Extensions=Tirhuta}"
67 );
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Tirh}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Tirh}"
72 );
73 testPropertyEscapes(
74 /^\P{scx=Tirhuta}+$/u,
75 nonMatchSymbols,
76 "\\P{scx=Tirhuta}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Tirh}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Tirh}"
82 );
83
84 reportCompare(0, 0);