Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Bhaiksuki.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=Bhaiksuki`
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 [0x011C00, 0x011C08],
20 [0x011C0A, 0x011C36],
21 [0x011C38, 0x011C45],
22 [0x011C50, 0x011C6C]
23 ]
24 });
25 testPropertyEscapes(
26 /^\p{Script=Bhaiksuki}+$/u,
27 matchSymbols,
28 "\\p{Script=Bhaiksuki}"
29 );
30 testPropertyEscapes(
31 /^\p{Script=Bhks}+$/u,
32 matchSymbols,
33 "\\p{Script=Bhks}"
34 );
35 testPropertyEscapes(
36 /^\p{sc=Bhaiksuki}+$/u,
37 matchSymbols,
38 "\\p{sc=Bhaiksuki}"
39 );
40 testPropertyEscapes(
41 /^\p{sc=Bhks}+$/u,
42 matchSymbols,
43 "\\p{sc=Bhks}"
44 );
45
46 const nonMatchSymbols = buildString({
47 loneCodePoints: [
48 0x011C09,
49 0x011C37
50 ],
51 ranges: [
52 [0x00DC00, 0x00DFFF],
53 [0x000000, 0x00DBFF],
54 [0x00E000, 0x011BFF],
55 [0x011C46, 0x011C4F],
56 [0x011C6D, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Script=Bhaiksuki}+$/u,
61 nonMatchSymbols,
62 "\\P{Script=Bhaiksuki}"
63 );
64 testPropertyEscapes(
65 /^\P{Script=Bhks}+$/u,
66 nonMatchSymbols,
67 "\\P{Script=Bhks}"
68 );
69 testPropertyEscapes(
70 /^\P{sc=Bhaiksuki}+$/u,
71 nonMatchSymbols,
72 "\\P{sc=Bhaiksuki}"
73 );
74 testPropertyEscapes(
75 /^\P{sc=Bhks}+$/u,
76 nonMatchSymbols,
77 "\\P{sc=Bhks}"
78 );
79
80 reportCompare(0, 0);