Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Gothic.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=Gothic`
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 0x0000B7,
19 0x000308,
20 0x000331
21 ],
22 ranges: [
23 [0x000304, 0x000305],
24 [0x010330, 0x01034A]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Script_Extensions=Gothic}+$/u,
29 matchSymbols,
30 "\\p{Script_Extensions=Gothic}"
31 );
32 testPropertyEscapes(
33 /^\p{Script_Extensions=Goth}+$/u,
34 matchSymbols,
35 "\\p{Script_Extensions=Goth}"
36 );
37 testPropertyEscapes(
38 /^\p{scx=Gothic}+$/u,
39 matchSymbols,
40 "\\p{scx=Gothic}"
41 );
42 testPropertyEscapes(
43 /^\p{scx=Goth}+$/u,
44 matchSymbols,
45 "\\p{scx=Goth}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [],
50 ranges: [
51 [0x00DC00, 0x00DFFF],
52 [0x000000, 0x0000B6],
53 [0x0000B8, 0x000303],
54 [0x000306, 0x000307],
55 [0x000309, 0x000330],
56 [0x000332, 0x00DBFF],
57 [0x00E000, 0x01032F],
58 [0x01034B, 0x10FFFF]
59 ]
60 });
61 testPropertyEscapes(
62 /^\P{Script_Extensions=Gothic}+$/u,
63 nonMatchSymbols,
64 "\\P{Script_Extensions=Gothic}"
65 );
66 testPropertyEscapes(
67 /^\P{Script_Extensions=Goth}+$/u,
68 nonMatchSymbols,
69 "\\P{Script_Extensions=Goth}"
70 );
71 testPropertyEscapes(
72 /^\P{scx=Gothic}+$/u,
73 nonMatchSymbols,
74 "\\P{scx=Gothic}"
75 );
76 testPropertyEscapes(
77 /^\P{scx=Goth}+$/u,
78 nonMatchSymbols,
79 "\\P{scx=Goth}"
80 );
81
82 reportCompare(0, 0);