Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Limbu.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=Limbu`
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 0x000965,
19 0x001940
20 ],
21 ranges: [
22 [0x001900, 0x00191E],
23 [0x001920, 0x00192B],
24 [0x001930, 0x00193B],
25 [0x001944, 0x00194F]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script_Extensions=Limbu}+$/u,
30 matchSymbols,
31 "\\p{Script_Extensions=Limbu}"
32 );
33 testPropertyEscapes(
34 /^\p{Script_Extensions=Limb}+$/u,
35 matchSymbols,
36 "\\p{Script_Extensions=Limb}"
37 );
38 testPropertyEscapes(
39 /^\p{scx=Limbu}+$/u,
40 matchSymbols,
41 "\\p{scx=Limbu}"
42 );
43 testPropertyEscapes(
44 /^\p{scx=Limb}+$/u,
45 matchSymbols,
46 "\\p{scx=Limb}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [
51 0x00191F
52 ],
53 ranges: [
54 [0x00DC00, 0x00DFFF],
55 [0x000000, 0x000964],
56 [0x000966, 0x0018FF],
57 [0x00192C, 0x00192F],
58 [0x00193C, 0x00193F],
59 [0x001941, 0x001943],
60 [0x001950, 0x00DBFF],
61 [0x00E000, 0x10FFFF]
62 ]
63 });
64 testPropertyEscapes(
65 /^\P{Script_Extensions=Limbu}+$/u,
66 nonMatchSymbols,
67 "\\P{Script_Extensions=Limbu}"
68 );
69 testPropertyEscapes(
70 /^\P{Script_Extensions=Limb}+$/u,
71 nonMatchSymbols,
72 "\\P{Script_Extensions=Limb}"
73 );
74 testPropertyEscapes(
75 /^\P{scx=Limbu}+$/u,
76 nonMatchSymbols,
77 "\\P{scx=Limbu}"
78 );
79 testPropertyEscapes(
80 /^\P{scx=Limb}+$/u,
81 nonMatchSymbols,
82 "\\P{scx=Limb}"
83 );
84
85 reportCompare(0, 0);