Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/strings/Emoji_Keycap_Sequence.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 `Emoji_Keycap_Sequence` (property of strings)
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, regexp-v-flag]
13 includes: [regExpUtils.js]
14 ---*/
15
16 testPropertyOfStrings({
17 regExp: /^\p{Emoji_Keycap_Sequence}+$/v,
18 expression: "\\p{Emoji_Keycap_Sequence}",
19 matchStrings: [
20 "#\uFE0F\u20E3",
21 "*\uFE0F\u20E3",
22 "0\uFE0F\u20E3",
23 "1\uFE0F\u20E3",
24 "2\uFE0F\u20E3",
25 "3\uFE0F\u20E3",
26 "4\uFE0F\u20E3",
27 "5\uFE0F\u20E3",
28 "6\uFE0F\u20E3",
29 "7\uFE0F\u20E3",
30 "8\uFE0F\u20E3",
31 "9\uFE0F\u20E3"
32 ],
33 nonMatchStrings: [
34 "\uFE0F\u20E3",
35 "#\uFE0F",
36 "#\u20E3",
37 "\uFE0F\u20E3",
38 "*\uFE0F",
39 "*\u20E3",
40 "\uFE0F\u20E3",
41 "0\uFE0F",
42 "0\u20E3",
43 "\uFE0F\u20E3",
44 "1\uFE0F",
45 "1\u20E3",
46 "\uFE0F\u20E3",
47 "2\uFE0F",
48 "2\u20E3"
49 ],
50 });
51
52 reportCompare(0, 0);