Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_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_Extensions=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 [0x003008, 0x00300B]
27 ]
28 });
29 testPropertyEscapes(
30 /^\p{Script_Extensions=Tibetan}+$/u,
31 matchSymbols,
32 "\\p{Script_Extensions=Tibetan}"
33 );
34 testPropertyEscapes(
35 /^\p{Script_Extensions=Tibt}+$/u,
36 matchSymbols,
37 "\\p{Script_Extensions=Tibt}"
38 );
39 testPropertyEscapes(
40 /^\p{scx=Tibetan}+$/u,
41 matchSymbols,
42 "\\p{scx=Tibetan}"
43 );
44 testPropertyEscapes(
45 /^\p{scx=Tibt}+$/u,
46 matchSymbols,
47 "\\p{scx=Tibt}"
48 );
49
50 const nonMatchSymbols = buildString({
51 loneCodePoints: [
52 0x000F48,
53 0x000F98,
54 0x000FBD,
55 0x000FCD
56 ],
57 ranges: [
58 [0x00DC00, 0x00DFFF],
59 [0x000000, 0x000EFF],
60 [0x000F6D, 0x000F70],
61 [0x000FD5, 0x000FD8],
62 [0x000FDB, 0x003007],
63 [0x00300C, 0x00DBFF],
64 [0x00E000, 0x10FFFF]
65 ]
66 });
67 testPropertyEscapes(
68 /^\P{Script_Extensions=Tibetan}+$/u,
69 nonMatchSymbols,
70 "\\P{Script_Extensions=Tibetan}"
71 );
72 testPropertyEscapes(
73 /^\P{Script_Extensions=Tibt}+$/u,
74 nonMatchSymbols,
75 "\\P{Script_Extensions=Tibt}"
76 );
77 testPropertyEscapes(
78 /^\P{scx=Tibetan}+$/u,
79 nonMatchSymbols,
80 "\\P{scx=Tibetan}"
81 );
82 testPropertyEscapes(
83 /^\P{scx=Tibt}+$/u,
84 nonMatchSymbols,
85 "\\P{scx=Tibt}"
86 );
87
88 reportCompare(0, 0);