Bug 1780541 - Part 2: Update test262 July 2022. r=mgaudet

Depends on D152383

Differential Revision: https://phabricator.services.mozilla.com/D152384
This commit is contained in:
André Bargull 2022-07-25 09:26:07 +00:00
Родитель e9ebe6a934
Коммит ea00681010
937 изменённых файлов: 25327 добавлений и 81858 удалений

Просмотреть файл

@ -1,5 +1,9 @@
commit 2e7cdfbe18eae4309677033673bb4b5ac6b1de40
Author: legendecas <legendecas@gmail.com>
Date: Mon May 2 22:56:46 2022 +0800
commit a3040a5047694f37b793c4394fd9cfa591dd17c1
Author: André Bargull <andre.bargull@gmail.com>
Date: Tue Jul 5 12:48:26 2022 +0200
Fix generator clean fail on .DS_Store
Import SpiderMonkey Temporal tests
Temporal tests written for the SpiderMonkey implementation. Mostly
covers edge cases around mathematical operations and regression tests
for reported spec bugs.

Просмотреть файл

@ -0,0 +1,63 @@
// |reftest| async
// Copyright (C) 2022 Chengzhong Wu. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-asyncgenerator-prototype-return
description: >
A broken promise should reject the returned promise of
AsyncGenerator.prototype.return when the generator is completed.
info: |
AsyncGenerator.prototype.return ( value )
...
8. If state is either suspendedStart or completed, then
a. Set generator.[[AsyncGeneratorState]] to awaiting-return.
b. Perform ! AsyncGeneratorAwaitReturn(generator).
...
AsyncGeneratorAwaitReturn ( generator )
...
6. Let promise be Completion(PromiseResolve(%Promise%, completion.[[Value]])).
7. If promiseCompletion is an abrupt completion, then
a. Set generator.[[AsyncGeneratorState]] to completed.
b. Perform AsyncGeneratorCompleteStep(generator, promiseCompletion, true).
c. Perform AsyncGeneratorDrainQueue(generator).
d. Return unused.
8. Assert: promiseCompletion.[[Type]] is normal.
9. Let promise be promiseCompletion.[[Value]].
...
flags: [async]
features: [async-iteration]
---*/
let unblock;
let blocking = new Promise(resolve => { unblock = resolve; });
let unblocked = false;
var g = async function*() {
await blocking;
unblocked = true;
};
var it = g();
let brokenPromise = Promise.resolve(42);
Object.defineProperty(brokenPromise, 'constructor', {
get: function () {
throw new Error('broken promise');
}
});
it.next();
it.return(brokenPromise)
.then(
() => {
throw new Test262Error("Expected rejection");
},
err => {
assert(unblocked, false, 'return should be rejected before generator is resumed');
assert.sameValue(err.message, 'broken promise');
}
)
.then($DONE, $DONE);
unblock();

Просмотреть файл

@ -0,0 +1,55 @@
// |reftest| async
// Copyright (C) 2022 Chengzhong Wu. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-asyncgenerator-prototype-return
description: >
A broken promise should reject the returned promise of
AsyncGenerator.prototype.return when the generator's state is suspendedStart.
info: |
AsyncGenerator.prototype.return ( value )
...
8. If state is either suspendedStart or completed, then
a. Set generator.[[AsyncGeneratorState]] to awaiting-return.
b. Perform AsyncGeneratorAwaitReturn(_generator_).
...
AsyncGeneratorAwaitReturn ( generator )
...
6. Let promise be Completion(PromiseResolve(%Promise%, completion.[[Value]])).
7. If promiseCompletion is an abrupt completion, then
a. Set generator.[[AsyncGeneratorState]] to completed.
b. Perform AsyncGeneratorCompleteStep(generator, promiseCompletion, true).
c. Perform AsyncGeneratorDrainQueue(generator).
d. Return unused.
8. Assert: promiseCompletion.[[Type]] is normal.
9. Let promise be promiseCompletion.[[Value]].
...
flags: [async]
features: [async-iteration]
---*/
var g = async function*() {
throw new Test262Error('Generator must not be resumed.');
};
var it = g();
let brokenPromise = Promise.resolve(42);
Object.defineProperty(brokenPromise, 'constructor', {
get: function () {
throw new Error('broken promise');
}
});
it.return(brokenPromise)
.then(
() => {
throw new Test262Error("Expected rejection");
},
err => {
assert.sameValue(err.message, 'broken promise');
}
)
.then($DONE, $DONE);

Просмотреть файл

@ -0,0 +1,65 @@
// |reftest| async
// Copyright (C) 2022 Chengzhong Wu. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-asyncgenerator-prototype-return
description: >
A broken promise should resume the generator and reject with
the exception when the generator's state is suspendedYield.
info: |
AsyncGenerator.prototype.return ( value )
...
9. Else if state is suspendedYield, then
a. Perform AsyncGeneratorResume(generator, completion).
...
AsyncGeneratorCompleteStep ( generator, completion, done [ , realm ] )
Resumes the steps defined at AsyncGeneratorStart ( generator, generatorBody )
...
4. Set the code evaluation state of genContext such that when evaluation is resumed for that execution context the following steps will be performed:
...
i. Perform AsyncGeneratorDrainQueue(generator).
j. Return undefined.
AsyncGeneratorDrainQueue ( generator )
...
5. Repeat, while done is false,
a. Let next be the first element of queue.
b. Let completion be Completion(next.[[Completion]]).
c. If completion.[[Type]] is return, then
i. Set generator.[[AsyncGeneratorState]] to awaiting-return.
ii. Perform AsyncGeneratorAwaitReturn(generator).
iii. Set done to true.
...
flags: [async]
features: [async-iteration]
---*/
let caughtErr;
var g = async function*() {
try {
yield;
return 'this is never returned';
} catch (err) {
caughtErr = err;
return 1;
}
};
let brokenPromise = Promise.resolve(42);
Object.defineProperty(brokenPromise, 'constructor', {
get: function () {
throw new Error('broken promise');
}
});
var it = g();
it.next().then(() => {
return it.return(brokenPromise);
}).then(ret => {
assert.sameValue(caughtErr.message, 'broken promise');
assert.sameValue(ret.value, 1, 'returned value');
assert.sameValue(ret.done, true, 'iterator is closed');
}).then($DONE, $DONE);

Просмотреть файл

@ -5,7 +5,7 @@
/*---
description: |
Collection of functions used to assert the correctness of RegExp objects.
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, matchValidator]
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, testExtendedCharacterClass, matchValidator]
---*/
function buildString(args) {
@ -91,6 +91,12 @@ function testPropertyOfStrings(args) {
}
}
// The exact same logic can be used to test extended character classes
// as enabled through the RegExp `v` flag. This is useful to test not
// just standalone properties of strings, but also string literals, and
// set operations.
const testExtendedCharacterClass = testPropertyOfStrings;
// Returns a function that validates a RegExp match result.
//
// Example:

Просмотреть файл

@ -5,7 +5,7 @@
/*---
description: |
Collection of functions used to assert the correctness of RegExp objects.
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, matchValidator]
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, testExtendedCharacterClass, matchValidator]
---*/
function buildString(args) {
@ -91,6 +91,12 @@ function testPropertyOfStrings(args) {
}
}
// The exact same logic can be used to test extended character classes
// as enabled through the RegExp `v` flag. This is useful to test not
// just standalone properties of strings, but also string literals, and
// set operations.
const testExtendedCharacterClass = testPropertyOfStrings;
// Returns a function that validates a RegExp match result.
//
// Example:

Просмотреть файл

@ -42,7 +42,7 @@ assert.compareIterator = function(iter, validators, message) {
/*---
description: |
Collection of functions used to assert the correctness of RegExp objects.
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, matchValidator]
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, testExtendedCharacterClass, matchValidator]
---*/
function buildString(args) {
@ -128,6 +128,12 @@ function testPropertyOfStrings(args) {
}
}
// The exact same logic can be used to test extended character classes
// as enabled through the RegExp `v` flag. This is useful to test not
// just standalone properties of strings, but also string literals, and
// set operations.
const testExtendedCharacterClass = testPropertyOfStrings;
// Returns a function that validates a RegExp match result.
//
// Example:

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\d]+$/v,
expression: "[[0-9]--\d]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--[0-9]]+$/v,
expression: "[[0-9]--[0-9]]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--_]+$/v,
expression: "[[0-9]--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\d]+$/v,
expression: "[\d--\d]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--[0-9]]+$/v,
expression: "[\d--[0-9]]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--_]+$/v,
expression: "[\d--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\d]+$/v,
expression: "[\d&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&[0-9]]+$/v,
expression: "[\d&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&_]+$/v,
expression: "[\d&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\d]+$/v,
expression: "[\d\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d[0-9]]+$/v,
expression: "[\d[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d_]+$/v,
expression: "[\d_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\d]+$/v,
expression: "[[0-9]&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&[0-9]]+$/v,
expression: "[[0-9]&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&_]+$/v,
expression: "[[0-9]&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,42 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\d]+$/v,
expression: "[[0-9]\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9][0-9]]+$/v,
expression: "[[0-9][0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]_]+$/v,
expression: "[[0-9]_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\d]+$/v,
expression: "[_--\d]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--[0-9]]+$/v,
expression: "[_--[0-9]]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\p{ASCII_Hex_Digit}]+$/v,
expression: "[_--\p{ASCII_Hex_Digit}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--_]+$/v,
expression: "[_--_]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\d]+$/v,
expression: "[_&&\d]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&[0-9]]+$/v,
expression: "[_&&[0-9]]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[_&&\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&_]+$/v,
expression: "[_&&_]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,34 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\d]",
matchStrings: [
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}--[0-9]]",
matchStrings: [
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--_]+$/v,
expression: "[\p{ASCII_Hex_Digit}--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&_]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,55 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}_]+$/v,
expression: "[\p{ASCII_Hex_Digit}_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"_",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,64 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,54 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\d]+$/v,
expression: "[_\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_[0-9]]+$/v,
expression: "[_[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,55 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\p{ASCII_Hex_Digit}]+$/v,
expression: "[_\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"_",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,35 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[__]+$/v,
expression: "[__]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,45 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,38 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\d]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--[0-9]]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\p{ASCII_Hex_Digit}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--_]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\d]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&[0-9]]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,43 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&_]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\d]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,53 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}[0-9]]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,64 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\p{ASCII_Hex_Digit}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,45 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}_]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,44 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,47 @@
// |reftest| skip -- regexp-v-flag is not supported
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});
reportCompare(0, 0);

Просмотреть файл

@ -0,0 +1,113 @@
// GENERATED, DO NOT EDIT
// file: regExpUtils.js
// Copyright (C) 2017 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: |
Collection of functions used to assert the correctness of RegExp objects.
defines: [buildString, testPropertyEscapes, testPropertyOfStrings, testExtendedCharacterClass, matchValidator]
---*/
function buildString(args) {
// Use member expressions rather than destructuring `args` for improved
// compatibility with engines that only implement assignment patterns
// partially or not at all.
const loneCodePoints = args.loneCodePoints;
const ranges = args.ranges;
const CHUNK_SIZE = 10000;
let result = Reflect.apply(String.fromCodePoint, null, loneCodePoints);
for (let i = 0; i < ranges.length; i++) {
const range = ranges[i];
const start = range[0];
const end = range[1];
const codePoints = [];
for (let length = 0, codePoint = start; codePoint <= end; codePoint++) {
codePoints[length++] = codePoint;
if (length === CHUNK_SIZE) {
result += Reflect.apply(String.fromCodePoint, null, codePoints);
codePoints.length = length = 0;
}
}
result += Reflect.apply(String.fromCodePoint, null, codePoints);
}
return result;
}
function printCodePoint(codePoint) {
const hex = codePoint
.toString(16)
.toUpperCase()
.padStart(6, "0");
return `U+${hex}`;
}
function printStringCodePoints(string) {
const buf = [];
for (const symbol of string) {
const formatted = printCodePoint(symbol.codePointAt(0));
buf.push(formatted);
}
return buf.join(' ');
}
function testPropertyEscapes(regExp, string, expression) {
if (!regExp.test(string)) {
for (const symbol of string) {
const hex = printCodePoint(symbol.codePointAt(0));
assert(
regExp.test(symbol),
`\`${ expression }\` should match U+${ hex } (\`${ symbol }\`)`
);
}
}
}
function testPropertyOfStrings(args) {
// Use member expressions rather than destructuring `args` for improved
// compatibility with engines that only implement assignment patterns
// partially or not at all.
const regExp = args.regExp;
const expression = args.expression;
const matchStrings = args.matchStrings;
const nonMatchStrings = args.nonMatchStrings;
const allStrings = matchStrings.join('');
if (!regExp.test(allStrings)) {
for (const string of matchStrings) {
assert(
regExp.test(string),
`\`${ expression }\` should match ${ string } (U+${ printStringCodePoints(string) })`
);
}
}
const allNonMatchStrings = nonMatchStrings.join('');
if (regExp.test(allNonMatchStrings)) {
for (const string of nonMatchStrings) {
assert(
!regExp.test(string),
`\`${ expression }\` should not match ${ string } (U+${ printStringCodePoints(string) })`
);
}
}
}
// The exact same logic can be used to test extended character classes
// as enabled through the RegExp `v` flag. This is useful to test not
// just standalone properties of strings, but also string literals, and
// set operations.
const testExtendedCharacterClass = testPropertyOfStrings;
// Returns a function that validates a RegExp match result.
//
// Example:
//
// var validate = matchValidator(['b'], 1, 'abc');
// validate(/b/.exec('abc'));
//
function matchValidator(expectedEntries, expectedIndex, expectedInput) {
return function(match) {
assert.compareArray(match, expectedEntries, 'Match entries');
assert.sameValue(match.index, expectedIndex, 'Match index');
assert.sameValue(match.input, expectedInput, 'Match input');
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше