Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Regional_Indicator.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 `Regional_Indicator`
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 [0x01F1E6, 0x01F1FF]
20 ]
21 });
22 testPropertyEscapes(
23 /^\p{Regional_Indicator}+$/u,
24 matchSymbols,
25 "\\p{Regional_Indicator}"
26 );
27 testPropertyEscapes(
28 /^\p{RI}+$/u,
29 matchSymbols,
30 "\\p{RI}"
31 );
32
33 const nonMatchSymbols = buildString({
34 loneCodePoints: [],
35 ranges: [
36 [0x00DC00, 0x00DFFF],
37 [0x000000, 0x00DBFF],
38 [0x00E000, 0x01F1E5],
39 [0x01F200, 0x10FFFF]
40 ]
41 });
42 testPropertyEscapes(
43 /^\P{Regional_Indicator}+$/u,
44 nonMatchSymbols,
45 "\\P{Regional_Indicator}"
46 );
47 testPropertyEscapes(
48 /^\P{RI}+$/u,
49 nonMatchSymbols,
50 "\\P{RI}"
51 );
52
53 reportCompare(0, 0);