Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Myanmar.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=Myanmar`
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 0x00A92E
19 ],
20 ranges: [
21 [0x001000, 0x00109F],
22 [0x00A9E0, 0x00A9FE],
23 [0x00AA60, 0x00AA7F],
24 [0x0116D0, 0x0116E3]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Script_Extensions=Myanmar}+$/u,
29 matchSymbols,
30 "\\p{Script_Extensions=Myanmar}"
31 );
32 testPropertyEscapes(
33 /^\p{Script_Extensions=Mymr}+$/u,
34 matchSymbols,
35 "\\p{Script_Extensions=Mymr}"
36 );
37 testPropertyEscapes(
38 /^\p{scx=Myanmar}+$/u,
39 matchSymbols,
40 "\\p{scx=Myanmar}"
41 );
42 testPropertyEscapes(
43 /^\p{scx=Mymr}+$/u,
44 matchSymbols,
45 "\\p{scx=Mymr}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [],
50 ranges: [
51 [0x00DC00, 0x00DFFF],
52 [0x000000, 0x000FFF],
53 [0x0010A0, 0x00A92D],
54 [0x00A92F, 0x00A9DF],
55 [0x00A9FF, 0x00AA5F],
56 [0x00AA80, 0x00DBFF],
57 [0x00E000, 0x0116CF],
58 [0x0116E4, 0x10FFFF]
59 ]
60 });
61 testPropertyEscapes(
62 /^\P{Script_Extensions=Myanmar}+$/u,
63 nonMatchSymbols,
64 "\\P{Script_Extensions=Myanmar}"
65 );
66 testPropertyEscapes(
67 /^\P{Script_Extensions=Mymr}+$/u,
68 nonMatchSymbols,
69 "\\P{Script_Extensions=Mymr}"
70 );
71 testPropertyEscapes(
72 /^\P{scx=Myanmar}+$/u,
73 nonMatchSymbols,
74 "\\P{scx=Myanmar}"
75 );
76 testPropertyEscapes(
77 /^\P{scx=Mymr}+$/u,
78 nonMatchSymbols,
79 "\\P{scx=Mymr}"
80 );
81
82 reportCompare(0, 0);