Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/unicodeSets/generated/character-union-character-property-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}]+$/v,
19 expression: "[_\p{ASCII_Hex_Digit}]",
20 matchStrings: [
21 "0",
22 "1",
23 "2",
24 "3",
25 "4",
26 "5",
27 "6",
28 "7",
29 "8",
30 "9",
31 "A",
32 "B",
33 "C",
34 "D",
35 "E",
36 "F",
37 "_",
38 "a",
39 "b",
40 "c",
41 "d",
42 "e",
43 "f"
44 ],
45 nonMatchStrings: [
46 "6\uFE0F\u20E3",
47 "9\uFE0F\u20E3",
48 "\u2603",
49 "\u{1D306}",
50 "\u{1F1E7}\u{1F1EA}"
51 ],
52 });
53
54 reportCompare(0, 0);