2019-03-05 17:55:53 +00:00
|
|
|
// Copyright 2019 the V8 project authors. All rights reserved.
|
2018-09-19 07:57:52 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Flags: --harmony-regexp-sequence
|
|
|
|
|
2019-03-05 17:55:53 +00:00
|
|
|
// These tests have been generated by the script at
|
|
|
|
// https://gist.github.com/mathiasbynens/3b42c99a227521dabfe68d9e63f00f42.
|
|
|
|
// Do not modify this file directly!
|
|
|
|
|
2018-09-19 07:57:52 +00:00
|
|
|
const re = /\p{Emoji_Keycap_Sequence}/u;
|
|
|
|
|
|
|
|
assertTrue(re.test('#\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('9\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('0\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('1\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('2\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('3\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('*\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('5\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('6\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('7\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('8\uFE0F\u20E3'));
|
|
|
|
assertTrue(re.test('4\uFE0F\u20E3'));
|