rgi-emoji-15.0.js (1249B)
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 15.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{1F426}\u200D\u2B1B", 21 "\u{1F6DC}", 22 "\u{1FA75}", 23 "\u{1FA76}", 24 "\u{1FA77}", 25 "\u{1FA87}", 26 "\u{1FA88}", 27 "\u{1FAAD}", 28 "\u{1FAAE}", 29 "\u{1FAAF}", 30 "\u{1FABB}", 31 "\u{1FABC}", 32 "\u{1FABD}", 33 "\u{1FABF}", 34 "\u{1FACE}", 35 "\u{1FACF}", 36 "\u{1FADA}", 37 "\u{1FADB}", 38 "\u{1FAE8}", 39 "\u{1FAF7}", 40 "\u{1FAF7}\u{1F3FB}", 41 "\u{1FAF7}\u{1F3FC}", 42 "\u{1FAF7}\u{1F3FD}", 43 "\u{1FAF7}\u{1F3FE}", 44 "\u{1FAF7}\u{1F3FF}", 45 "\u{1FAF8}", 46 "\u{1FAF8}\u{1F3FB}", 47 "\u{1FAF8}\u{1F3FC}", 48 "\u{1FAF8}\u{1F3FD}", 49 "\u{1FAF8}\u{1F3FE}", 50 "\u{1FAF8}\u{1F3FF}" 51 ], 52 }); 53 54 reportCompare(0, 0);