Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Pahawh_Hmong.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=Pahawh_Hmong`
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 [0x016B00, 0x016B45],
20 [0x016B50, 0x016B59],
21 [0x016B5B, 0x016B61],
22 [0x016B63, 0x016B77],
23 [0x016B7D, 0x016B8F]
24 ]
25 });
26 testPropertyEscapes(
27 /^\p{Script=Pahawh_Hmong}+$/u,
28 matchSymbols,
29 "\\p{Script=Pahawh_Hmong}"
30 );
31 testPropertyEscapes(
32 /^\p{Script=Hmng}+$/u,
33 matchSymbols,
34 "\\p{Script=Hmng}"
35 );
36 testPropertyEscapes(
37 /^\p{sc=Pahawh_Hmong}+$/u,
38 matchSymbols,
39 "\\p{sc=Pahawh_Hmong}"
40 );
41 testPropertyEscapes(
42 /^\p{sc=Hmng}+$/u,
43 matchSymbols,
44 "\\p{sc=Hmng}"
45 );
46
47 const nonMatchSymbols = buildString({
48 loneCodePoints: [
49 0x016B5A,
50 0x016B62
51 ],
52 ranges: [
53 [0x00DC00, 0x00DFFF],
54 [0x000000, 0x00DBFF],
55 [0x00E000, 0x016AFF],
56 [0x016B46, 0x016B4F],
57 [0x016B78, 0x016B7C],
58 [0x016B90, 0x10FFFF]
59 ]
60 });
61 testPropertyEscapes(
62 /^\P{Script=Pahawh_Hmong}+$/u,
63 nonMatchSymbols,
64 "\\P{Script=Pahawh_Hmong}"
65 );
66 testPropertyEscapes(
67 /^\P{Script=Hmng}+$/u,
68 nonMatchSymbols,
69 "\\P{Script=Hmng}"
70 );
71 testPropertyEscapes(
72 /^\P{sc=Pahawh_Hmong}+$/u,
73 nonMatchSymbols,
74 "\\P{sc=Pahawh_Hmong}"
75 );
76 testPropertyEscapes(
77 /^\P{sc=Hmng}+$/u,
78 nonMatchSymbols,
79 "\\P{sc=Hmng}"
80 );
81
82 reportCompare(0, 0);