Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Nandinagari.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=Nandinagari`
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 0x001CE9,
19 0x001CF2,
20 0x001CFA
21 ],
22 ranges: [
23 [0x000964, 0x000965],
24 [0x000CE6, 0x000CEF],
25 [0x00A830, 0x00A835],
26 [0x0119A0, 0x0119A7],
27 [0x0119AA, 0x0119D7],
28 [0x0119DA, 0x0119E4]
29 ]
30 });
31 testPropertyEscapes(
32 /^\p{Script_Extensions=Nandinagari}+$/u,
33 matchSymbols,
34 "\\p{Script_Extensions=Nandinagari}"
35 );
36 testPropertyEscapes(
37 /^\p{Script_Extensions=Nand}+$/u,
38 matchSymbols,
39 "\\p{Script_Extensions=Nand}"
40 );
41 testPropertyEscapes(
42 /^\p{scx=Nandinagari}+$/u,
43 matchSymbols,
44 "\\p{scx=Nandinagari}"
45 );
46 testPropertyEscapes(
47 /^\p{scx=Nand}+$/u,
48 matchSymbols,
49 "\\p{scx=Nand}"
50 );
51
52 const nonMatchSymbols = buildString({
53 loneCodePoints: [],
54 ranges: [
55 [0x00DC00, 0x00DFFF],
56 [0x000000, 0x000963],
57 [0x000966, 0x000CE5],
58 [0x000CF0, 0x001CE8],
59 [0x001CEA, 0x001CF1],
60 [0x001CF3, 0x001CF9],
61 [0x001CFB, 0x00A82F],
62 [0x00A836, 0x00DBFF],
63 [0x00E000, 0x01199F],
64 [0x0119A8, 0x0119A9],
65 [0x0119D8, 0x0119D9],
66 [0x0119E5, 0x10FFFF]
67 ]
68 });
69 testPropertyEscapes(
70 /^\P{Script_Extensions=Nandinagari}+$/u,
71 nonMatchSymbols,
72 "\\P{Script_Extensions=Nandinagari}"
73 );
74 testPropertyEscapes(
75 /^\P{Script_Extensions=Nand}+$/u,
76 nonMatchSymbols,
77 "\\P{Script_Extensions=Nand}"
78 );
79 testPropertyEscapes(
80 /^\P{scx=Nandinagari}+$/u,
81 nonMatchSymbols,
82 "\\P{scx=Nandinagari}"
83 );
84 testPropertyEscapes(
85 /^\P{scx=Nand}+$/u,
86 nonMatchSymbols,
87 "\\P{scx=Nand}"
88 );
89
90 reportCompare(0, 0);