Debian Codegraph @

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