Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Tai_Tham.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=Tai_Tham`
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 [0x001A20, 0x001A5E],
20 [0x001A60, 0x001A7C],
21 [0x001A7F, 0x001A89],
22 [0x001A90, 0x001A99],
23 [0x001AA0, 0x001AAD]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script=Tai_Tham}+$/u,
28 matchSymbols,
29 "\\p{Script=Tai_Tham}"
30 );
31 testPropertyEscapes(
32 /^\p{Script=Lana}+$/u,
33 matchSymbols,
34 "\\p{Script=Lana}"
35 );
36 testPropertyEscapes(
37 /^\p{sc=Tai_Tham}+$/u,
38 matchSymbols,
39 "\\p{sc=Tai_Tham}"
40 );
41 testPropertyEscapes(
42 /^\p{sc=Lana}+$/u,
43 matchSymbols,
44 "\\p{sc=Lana}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [
49 0x001A5F
50 ],
51 ranges: [
52 [0x00DC00, 0x00DFFF],
53 [0x000000, 0x001A1F],
54 [0x001A7D, 0x001A7E],
55 [0x001A8A, 0x001A8F],
56 [0x001A9A, 0x001A9F],
57 [0x001AAE, 0x00DBFF],
58 [0x00E000, 0x10FFFF]
59 ]
60 });
61 testPropertyEscapes(
62 /^\P{Script=Tai_Tham}+$/u,
63 nonMatchSymbols,
64 "\\P{Script=Tai_Tham}"
65 );
66 testPropertyEscapes(
67 /^\P{Script=Lana}+$/u,
68 nonMatchSymbols,
69 "\\P{Script=Lana}"
70 );
71 testPropertyEscapes(
72 /^\P{sc=Tai_Tham}+$/u,
73 nonMatchSymbols,
74 "\\P{sc=Tai_Tham}"
75 );
76 testPropertyEscapes(
77 /^\P{sc=Lana}+$/u,
78 nonMatchSymbols,
79 "\\P{sc=Lana}"
80 );
81
82 reportCompare(0, 0);