Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Linear_B.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=Linear_B`
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 [0x010000, 0x01000B],
20 [0x01000D, 0x010026],
21 [0x010028, 0x01003A],
22 [0x01003C, 0x01003D],
23 [0x01003F, 0x01004D],
24 [0x010050, 0x01005D],
25 [0x010080, 0x0100FA]
26 ]
27 });
28 testPropertyEscapes(
29 /^\p{Script=Linear_B}+$/u,
30 matchSymbols,
31 "\\p{Script=Linear_B}"
32 );
33 testPropertyEscapes(
34 /^\p{Script=Linb}+$/u,
35 matchSymbols,
36 "\\p{Script=Linb}"
37 );
38 testPropertyEscapes(
39 /^\p{sc=Linear_B}+$/u,
40 matchSymbols,
41 "\\p{sc=Linear_B}"
42 );
43 testPropertyEscapes(
44 /^\p{sc=Linb}+$/u,
45 matchSymbols,
46 "\\p{sc=Linb}"
47 );
48
49 const nonMatchSymbols = buildString({
50 loneCodePoints: [
51 0x01000C,
52 0x010027,
53 0x01003B,
54 0x01003E
55 ],
56 ranges: [
57 [0x00DC00, 0x00DFFF],
58 [0x000000, 0x00DBFF],
59 [0x00E000, 0x00FFFF],
60 [0x01004E, 0x01004F],
61 [0x01005E, 0x01007F],
62 [0x0100FB, 0x10FFFF]
63 ]
64 });
65 testPropertyEscapes(
66 /^\P{Script=Linear_B}+$/u,
67 nonMatchSymbols,
68 "\\P{Script=Linear_B}"
69 );
70 testPropertyEscapes(
71 /^\P{Script=Linb}+$/u,
72 nonMatchSymbols,
73 "\\P{Script=Linb}"
74 );
75 testPropertyEscapes(
76 /^\P{sc=Linear_B}+$/u,
77 nonMatchSymbols,
78 "\\P{sc=Linear_B}"
79 );
80 testPropertyEscapes(
81 /^\P{sc=Linb}+$/u,
82 nonMatchSymbols,
83 "\\P{sc=Linb}"
84 );
85
86 reportCompare(0, 0);