Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/unicodeSets/generated/character-difference-character-class.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-v-flag]
14 includes: [regExpUtils.js]
15 ---*/
16
17 testExtendedCharacterClass({
18 regExp: /^[_--[0-9]]+$/v,
19 expression: "[_--[0-9]]",
20 matchStrings: [
21 "_"
22 ],
23 nonMatchStrings: [
24 "6\uFE0F\u20E3",
25 "7",
26 "9\uFE0F\u20E3",
27 "C",
28 "\u2603",
29 "\u{1D306}",
30 "\u{1F1E7}\u{1F1EA}"
31 ],
32 });
33
34 reportCompare(0, 0);