Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Thai.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=Thai`
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 0x0002BC,
19 0x0002D7,
20 0x000303,
21 0x000331
22 ],
23 ranges: [
24 [0x000E01, 0x000E3A],
25 [0x000E40, 0x000E5B]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script_Extensions=Thai}+$/u,
30 matchSymbols,
31 "\\p{Script_Extensions=Thai}"
32 );
33 testPropertyEscapes(
34 /^\p{Script_Extensions=Thai}+$/u,
35 matchSymbols,
36 "\\p{Script_Extensions=Thai}"
37 );
38 testPropertyEscapes(
39 /^\p{scx=Thai}+$/u,
40 matchSymbols,
41 "\\p{scx=Thai}"
42 );
43 testPropertyEscapes(
44 /^\p{scx=Thai}+$/u,
45 matchSymbols,
46 "\\p{scx=Thai}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [],
51 ranges: [
52 [0x00DC00, 0x00DFFF],
53 [0x000000, 0x0002BB],
54 [0x0002BD, 0x0002D6],
55 [0x0002D8, 0x000302],
56 [0x000304, 0x000330],
57 [0x000332, 0x000E00],
58 [0x000E3B, 0x000E3F],
59 [0x000E5C, 0x00DBFF],
60 [0x00E000, 0x10FFFF]
61 ]
62 });
63 testPropertyEscapes(
64 /^\P{Script_Extensions=Thai}+$/u,
65 nonMatchSymbols,
66 "\\P{Script_Extensions=Thai}"
67 );
68 testPropertyEscapes(
69 /^\P{Script_Extensions=Thai}+$/u,
70 nonMatchSymbols,
71 "\\P{Script_Extensions=Thai}"
72 );
73 testPropertyEscapes(
74 /^\P{scx=Thai}+$/u,
75 nonMatchSymbols,
76 "\\P{scx=Thai}"
77 );
78 testPropertyEscapes(
79 /^\P{scx=Thai}+$/u,
80 nonMatchSymbols,
81 "\\P{scx=Thai}"
82 );
83
84 reportCompare(0, 0);