1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright 2023 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Test that Unicode property escapes for `RGI_Emoji` (property of strings)
match Emoji 15.0 strings.
info: |
Generated by https://github.com/mathiasbynens/caniunicode
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testPropertyOfStrings({
regExp: /^\p{RGI_Emoji}+$/v,
expression: "\\p{RGI_Emoji}",
matchStrings: [
"\u{1F426}\u200D\u2B1B",
"\u{1F6DC}",
"\u{1FA75}",
"\u{1FA76}",
"\u{1FA77}",
"\u{1FA87}",
"\u{1FA88}",
"\u{1FAAD}",
"\u{1FAAE}",
"\u{1FAAF}",
"\u{1FABB}",
"\u{1FABC}",
"\u{1FABD}",
"\u{1FABF}",
"\u{1FACE}",
"\u{1FACF}",
"\u{1FADA}",
"\u{1FADB}",
"\u{1FAE8}",
"\u{1FAF7}",
"\u{1FAF7}\u{1F3FB}",
"\u{1FAF7}\u{1F3FC}",
"\u{1FAF7}\u{1F3FD}",
"\u{1FAF7}\u{1F3FE}",
"\u{1FAF7}\u{1F3FF}",
"\u{1FAF8}",
"\u{1FAF8}\u{1F3FB}",
"\u{1FAF8}\u{1F3FC}",
"\u{1FAF8}\u{1F3FD}",
"\u{1FAF8}\u{1F3FE}",
"\u{1FAF8}\u{1F3FF}"
],
});
reportCompare(0, 0);
|