Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/unicodeSets/generated/rgi-emoji-16.0.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 Test that Unicode property escapes for `RGI_Emoji` (property of strings)
8 match Emoji 16.0 strings.
9 info: |
10 Generated by https://github.com/mathiasbynens/caniunicode
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{RGI_Emoji}+$/v,
18 expression: "\\p{RGI_Emoji}",
19 matchStrings: [
20 "\u{1F1E8}\u{1F1F6}",
21 "\u{1FA89}",
22 "\u{1FA8F}",
23 "\u{1FABE}",
24 "\u{1FAC6}",
25 "\u{1FADC}",
26 "\u{1FADF}",
27 "\u{1FAE9}"
28 ],
29 });
30
31 reportCompare(0, 0);