Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/unicodeSets/generated/character-property-escape-union-property-of-strings-escape.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 Extended character classes enabled by the RegExp `v` flag support
8 properties of strings, string literals, and set operations
9 info: |
10 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
11 Unicode v16.0.0
12 esid: sec-patterns
13 features: [regexp-unicode-property-escapes, regexp-v-flag]
14 includes: [regExpUtils.js]
15 ---*/
16
17 testExtendedCharacterClass({
18 regExp: /^[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]+$/v,
19 expression: "[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]",
20 matchStrings: [
21 "#\uFE0F\u20E3",
22 "*\uFE0F\u20E3",
23 "0",
24 "0\uFE0F\u20E3",
25 "1",
26 "1\uFE0F\u20E3",
27 "2",
28 "2\uFE0F\u20E3",
29 "3",
30 "3\uFE0F\u20E3",
31 "4",
32 "4\uFE0F\u20E3",
33 "5",
34 "5\uFE0F\u20E3",
35 "6",
36 "6\uFE0F\u20E3",
37 "7",
38 "7\uFE0F\u20E3",
39 "8",
40 "8\uFE0F\u20E3",
41 "9",
42 "9\uFE0F\u20E3",
43 "A",
44 "B",
45 "C",
46 "D",
47 "E",
48 "F",
49 "a",
50 "b",
51 "c",
52 "d",
53 "e",
54 "f"
55 ],
56 nonMatchStrings: [
57 "\u2603",
58 "\u{1D306}",
59 "\u{1F1E7}\u{1F1EA}"
60 ],
61 });
62
63 reportCompare(0, 0);