Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Tibetan.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=Tibetan`
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 [0x000F00, 0x000F47],
20 [0x000F49, 0x000F6C],
21 [0x000F71, 0x000F97],
22 [0x000F99, 0x000FBC],
23 [0x000FBE, 0x000FCC],
24 [0x000FCE, 0x000FD4],
25 [0x000FD9, 0x000FDA]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script=Tibetan}+$/u,
30 matchSymbols,
31 "\\p{Script=Tibetan}"
32 );
33 testPropertyEscapes(
34 /^\p{Script=Tibt}+$/u,
35 matchSymbols,
36 "\\p{Script=Tibt}"
37 );
38 testPropertyEscapes(
39 /^\p{sc=Tibetan}+$/u,
40 matchSymbols,
41 "\\p{sc=Tibetan}"
42 );
43 testPropertyEscapes(
44 /^\p{sc=Tibt}+$/u,
45 matchSymbols,
46 "\\p{sc=Tibt}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [
51 0x000F48,
52 0x000F98,
53 0x000FBD,
54 0x000FCD
55 ],
56 ranges: [
57 [0x00DC00, 0x00DFFF],
58 [0x000000, 0x000EFF],
59 [0x000F6D, 0x000F70],
60 [0x000FD5, 0x000FD8],
61 [0x000FDB, 0x00DBFF],
62 [0x00E000, 0x10FFFF]
63 ]
64 });
65 testPropertyEscapes(
66 /^\P{Script=Tibetan}+$/u,
67 nonMatchSymbols,
68 "\\P{Script=Tibetan}"
69 );
70 testPropertyEscapes(
71 /^\P{Script=Tibt}+$/u,
72 nonMatchSymbols,
73 "\\P{Script=Tibt}"
74 );
75 testPropertyEscapes(
76 /^\P{sc=Tibetan}+$/u,
77 nonMatchSymbols,
78 "\\P{sc=Tibetan}"
79 );
80 testPropertyEscapes(
81 /^\P{sc=Tibt}+$/u,
82 nonMatchSymbols,
83 "\\P{sc=Tibt}"
84 );
85
86 reportCompare(0, 0);