mirror of https://github.com/tc39/test262.git
Transform legacy format to harness assertions: test/built-ins/R*/**/*.js
This commit is contained in:
parent
0181293d38
commit
717bcbaedd
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T1
|
|||
description: Tested RegExp is "a**"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
|
||||
throw new Test262Error('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError !== true)) {
|
||||
throw new Test262Error('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T10
|
|||
description: Tested RegExp is "++a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
|
||||
throw new Test262Error('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T11
|
|||
description: Tested RegExp is "?a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
|
||||
throw new Test262Error('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T12
|
|||
description: Tested RegExp is "??a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
|
||||
throw new Test262Error('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T13
|
|||
description: Tested RegExp is "x{1}{1,}"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
|
||||
throw new Test262Error('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T14
|
|||
description: Tested RegExp is "x{1,2}{1}"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
|
||||
throw new Test262Error('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T15
|
|||
description: Tested RegExp is "x{1,}{1}"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
|
||||
throw new Test262Error('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T16
|
|||
description: Tested RegExp is "x{0,1}{1,}"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
|
||||
throw new Test262Error('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T2
|
|||
description: Tested RegExp is "a***"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
|
||||
throw new Test262Error('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T3
|
|||
description: Tested RegExp is "a++"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
|
||||
throw new Test262Error('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T4
|
|||
description: Tested RegExp is "a+++"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
|
||||
throw new Test262Error('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T5
|
|||
description: Tested RegExp is "a???"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
|
||||
throw new Test262Error('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T6
|
|||
description: Tested RegExp is "a????"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
|
||||
throw new Test262Error('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T7
|
|||
description: Tested RegExp is "*a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
|
||||
throw new Test262Error('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T8
|
|||
description: Tested RegExp is "**a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
|
||||
throw new Test262Error('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -7,11 +7,14 @@ es5id: 15.10.1_A1_T9
|
|||
description: Tested RegExp is "+a"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
|
||||
throw new Test262Error('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
|
||||
} catch (e) {
|
||||
if ((e instanceof SyntaxError) !== true) {
|
||||
throw new Test262Error('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.1_T1
|
|||
description: Use \t in RegExp and \u0009 in tested string
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\t/.exec("\u0009");
|
||||
if ((arr === null) || (arr[0] !== "\u0009")) {
|
||||
throw new Test262Error('#1: var arr = /\\t/.exec("\\u0009"); arr[0] === "\\u0009". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\t\t/.exec("a\u0009\u0009b");
|
||||
if ((arr === null) || (arr[0] !== "\u0009\u0009")) {
|
||||
throw new Test262Error('#2: var arr = /\\t\\t/.exec("a\\u0009\\u0009b"); arr[0] === "\\u0009\\u0009". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.2_T1
|
|||
description: Use \n in RegExp and \u000A in tested string
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\n/.exec("\u000A");
|
||||
if ((arr === null) || (arr[0] !== "\u000A")) {
|
||||
throw new Test262Error('#1: var arr = /\\n/.exec("\\u000A"); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\n\n/.exec("a\u000A\u000Ab");
|
||||
if ((arr === null) || (arr[0] !== "\u000A\u000A")) {
|
||||
throw new Test262Error('#2: var arr = /\\n\\n/.exec("a\\u000A\\u000Ab"); arr[0] === "\\u000A\\u000A". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.3_T1
|
|||
description: Use \v in RegExp and \u000B in tested string
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\v/.exec("\u000B");
|
||||
if ((arr === null) || (arr[0] !== "\u000B")) {
|
||||
throw new Test262Error('#1: var arr = /\\v/.exec("\\u000B"); arr[0] === "\\u000B". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\v\v/.exec("a\u000B\u000Bb");
|
||||
if ((arr === null) || (arr[0] !== "\u000B\u000B")) {
|
||||
throw new Test262Error('#2: var arr = /\\v\\v/.exec("a\\u000B\\u000Bb"); arr[0] === "\\u000B\\u000B". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.4_T1
|
|||
description: Use \f in RegExp and \u000C in tested string
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\f/.exec("\u000C");
|
||||
if ((arr === null) || (arr[0] !== "\u000C")) {
|
||||
throw new Test262Error('#1: var arr = /\\f/.exec("\\u000C"); arr[0] === "\\u000C". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\f\f/.exec("a\u000C\u000Cb");
|
||||
if ((arr === null) || (arr[0] !== "\u000C\u000C")) {
|
||||
throw new Test262Error('#2: var arr = /\\f\\f/.exec("a\\u000C\\u000Cb"); arr[0] === "\\u000C\\u000C". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -9,13 +9,11 @@ es5id: 15.10.2.10_A1.5_T1
|
|||
description: Use \r in RegExp and \u000D in tested string
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\r/.exec("\u000D");
|
||||
if ((arr === null) || (arr[0] !== "\u000D")) {
|
||||
throw new Test262Error('#1: var arr = /\\r/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\r\r/.exec("a\u000D\u000Db");
|
||||
if ((arr === null) || (arr[0] !== "\u000D\u000D")) {
|
||||
throw new Test262Error('#2: var arr = /\\r\\r/.exec("a\\u000D\\u000Db"); arr[0] === "\\u000D\\u000D". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -7,8 +7,7 @@ es5id: 15.10.2.10_A2.1_T1
|
|||
description: "ControlLetter :: A - Z"
|
||||
---*/
|
||||
|
||||
//CHECK#0041-005A
|
||||
var result = true;
|
||||
var result = true;
|
||||
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
|
||||
var str = String.fromCharCode(alpha % 32);
|
||||
var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
|
||||
|
@ -17,6 +16,4 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: CharacterEscape :: c A - Z');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
|
|
@ -7,8 +7,7 @@ es5id: 15.10.2.10_A2.1_T2
|
|||
description: "ControlLetter :: a - z"
|
||||
---*/
|
||||
|
||||
//CHECK#0061-007A
|
||||
var result = true;
|
||||
var result = true;
|
||||
for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
|
||||
var str = String.fromCharCode(alpha % 32);
|
||||
var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
|
||||
|
@ -17,6 +16,4 @@ for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: CharacterEscape :: c a - z');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
|
|
@ -7,25 +7,21 @@ es5id: 15.10.2.10_A3.1_T1
|
|||
description: Tested string include equal unicode symbols
|
||||
---*/
|
||||
|
||||
//CHECK#0
|
||||
var arr = /\x00/.exec("\u0000");
|
||||
if ((arr === null) || (arr[0] !== "\u0000")) {
|
||||
throw new Test262Error('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\x01/.exec("\u0001");
|
||||
if ((arr === null) || (arr[0] !== "\u0001")) {
|
||||
throw new Test262Error('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\x0A/.exec("\u000A");
|
||||
if ((arr === null) || (arr[0] !== "\u000A")) {
|
||||
throw new Test262Error('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
var arr = /\xFF/.exec("\u00FF");
|
||||
if ((arr === null) || (arr[0] !== "\u00FF")) {
|
||||
throw new Test262Error('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -7,7 +7,6 @@ es5id: 15.10.2.10_A3.1_T2
|
|||
description: Checking ENGLISH CAPITAL ALPHABET and english small alphabet
|
||||
---*/
|
||||
|
||||
//CHECK#41-5A
|
||||
var hex = ["\\x41", "\\x42", "\\x43", "\\x44", "\\x45", "\\x46", "\\x47", "\\x48", "\\x49", "\\x4A", "\\x4B", "\\x4C", "\\x4D", "\\x4E", "\\x4F", "\\x50", "\\x51", "\\x52", "\\x53", "\\x54", "\\x55", "\\x56", "\\x57", "\\x58", "\\x59", "\\x5A"];
|
||||
var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
|
||||
var result = true;
|
||||
|
@ -18,11 +17,8 @@ for (var index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
||||
//CHECK#61-7A
|
||||
hex = ["\\x61", "\\x62", "\\x63", "\\x64", "\\x65", "\\x66", "\\x67", "\\x68", "\\x69", "\\x6A", "\\x6B", "\\x6C", "\\x6D", "\\x6E", "\\x6F", "\\x70", "\\x71", "\\x72", "\\x73", "\\x74", "\\x75", "\\x76", "\\x77", "\\x78", "\\x79", "\\x7A"];
|
||||
character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
|
||||
var result = true;
|
||||
|
@ -33,6 +29,4 @@ for (index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: english small alphabet');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
|
|
@ -9,37 +9,31 @@ es5id: 15.10.2.10_A4.1_T1
|
|||
description: RegExp and tested string include uncode symbols
|
||||
---*/
|
||||
|
||||
//CHECK#0
|
||||
var arr = /\u0000/.exec("\u0000");
|
||||
if ((arr === null) || (arr[0] !== "\u0000")) {
|
||||
throw new Test262Error('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\u0001/.exec("\u0001");
|
||||
if ((arr === null) || (arr[0] !== "\u0001")) {
|
||||
throw new Test262Error('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = /\u000A/.exec("\u000A");
|
||||
if ((arr === null) || (arr[0] !== "\u000A")) {
|
||||
throw new Test262Error('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
var arr = /\u00FF/.exec("\u00FF");
|
||||
if ((arr === null) || (arr[0] !== "\u00FF")) {
|
||||
throw new Test262Error('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
var arr = /\u0FFF/.exec("\u0FFF");
|
||||
if ((arr === null) || (arr[0] !== "\u0FFF")) {
|
||||
throw new Test262Error('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
var arr = /\uFFFF/.exec("\uFFFF");
|
||||
if ((arr === null) || (arr[0] !== "\uFFFF")) {
|
||||
throw new Test262Error('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -11,7 +11,6 @@ description: >
|
|||
alphabet
|
||||
---*/
|
||||
|
||||
//CHECK#41-5A
|
||||
var hex = ["\\u0041", "\\u0042", "\\u0043", "\\u0044", "\\u0045", "\\u0046", "\\u0047", "\\u0048", "\\u0049", "\\u004A", "\\u004B", "\\u004C", "\\u004D", "\\u004E", "\\u004F", "\\u0050", "\\u0051", "\\u0052", "\\u0053", "\\u0054", "\\u0055", "\\u0056", "\\u0057", "\\u0058", "\\u0059", "\\u005A"];
|
||||
var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
|
||||
var result = true;
|
||||
|
@ -22,11 +21,8 @@ for (var index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
||||
//CHECK#61-7A
|
||||
hex = ["\\u0061", "\\u0062", "\\u0063", "\\u0064", "\\u0065", "\\u0066", "\\u0067", "\\u0068", "\\u0069", "\\u006A", "\\u006B", "\\u006C", "\\u006D", "\\u006E", "\\u006F", "\\u0070", "\\u0071", "\\u0072", "\\u0073", "\\u0074", "\\u0075", "\\u0076", "\\u0077", "\\u0078", "\\u0079", "\\u007A"];
|
||||
character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
|
||||
var result = true;
|
||||
|
@ -37,6 +33,4 @@ for (index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: english small alphabet');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
|
|
@ -11,7 +11,6 @@ description: >
|
|||
alphabet in unicode notation
|
||||
---*/
|
||||
|
||||
//CHECK#0410-042F, 0401
|
||||
var hex = ["\\u0410", "\\u0411", "\\u0412", "\\u0413", "\\u0414", "\\u0415", "\\u0416", "\\u0417", "\\u0418", "\\u0419", "\\u041A", "\\u041B", "\\u041C", "\\u041D", "\\u041E", "\\u041F", "\\u0420", "\\u0421", "\\u0422", "\\u0423", "\\u0424", "\\u0425", "\\u0426", "\\u0427", "\\u0428", "\\u0429", "\\u042A", "\\u042B", "\\u042C", "\\u042D", "\\u042E", "\\u042F", "\\u0401"];
|
||||
var character = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"];
|
||||
var result = true;
|
||||
|
@ -22,11 +21,8 @@ for (var index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: RUSSIAN CAPITAL ALPHABET');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
||||
//CHECK#0430-044F, 0451
|
||||
hex = ["\\u0430", "\\u0431", "\\u0432", "\\u0433", "\\u0434", "\\u0435", "\\u0436", "\\u0437", "\\u0438", "\\u0439", "\\u043A", "\\u043B", "\\u043C", "\\u043D", "\\u043E", "\\u043F", "\\u0440", "\\u0441", "\\u0442", "\\u0443", "\\u0444", "\\u0445", "\\u0446", "\\u0447", "\\u0448", "\\u0449", "\\u044A", "\\u044B", "\\u044C", "\\u044D", "\\u044E", "\\u044F", "\\u0451"];
|
||||
character = ["\u0430", "\u0431", "\u0432", "\u0433", "\u0434", "\u0435", "\u0436", "\u0437", "\u0438", "\u0439", "\u043A", "\u043B", "\u043C", "\u043D", "\u043E", "\u043F", "\u0440", "\u0441", "\u0442", "\u0443", "\u0444", "\u0445", "\u0446", "\u0447", "\u0448", "\u0449", "\u044A", "\u044B", "\u044C", "\u044D", "\u044E", "\u044F", "\u0451"];
|
||||
var result = true;
|
||||
|
@ -37,6 +33,4 @@ for (index = 0; index < hex.length; index++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (result !== true) {
|
||||
throw new Test262Error('#1: russian small alphabet');
|
||||
}
|
||||
assert.sameValue(result, true, 'The value of result is expected to be true');
|
||||
|
|
|
@ -9,7 +9,6 @@ es5id: 15.10.2.10_A5.1_T1
|
|||
description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
|
||||
for (var k = 0; k < non_ident.length; ++k) {
|
||||
var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
|
||||
|
|
|
@ -9,13 +9,11 @@ description: >
|
|||
consisting of a <NUL> character (Unicodevalue0000)
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var arr = /\0/.exec("\u0000");
|
||||
if ((arr === null) || (arr[0] !== "\u0000")) {
|
||||
throw new Test262Error('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
var arr = (new RegExp("\\0")).exec("\u0000");
|
||||
if ((arr === null) || (arr[0] !== "\u0000")) {
|
||||
throw new Test262Error('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
|
||||
|
|
|
@ -9,12 +9,10 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /(A)\1/.exec("AA");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "AA")) {
|
||||
throw new Test262Error('#1: var arr = (/(A)\\1/.exec("AA")); arr[0] === "AA". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ((arr === null) || (arr[1] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1]));
|
||||
}
|
||||
|
|
|
@ -9,12 +9,10 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /\1(A)/.exec("AA");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "A")) {
|
||||
throw new Test262Error('#1: var arr = (/\\1(A)/.exec("AA")); arr[0] === "A". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ((arr === null) || (arr[1] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1]));
|
||||
}
|
||||
|
|
|
@ -9,17 +9,14 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /(A)\1(B)\2/.exec("AABB");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "AABB")) {
|
||||
throw new Test262Error('#1: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[0] === "AABB". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ((arr === null) || (arr[1] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[1] === "A". Actual. ' + (arr && arr[1]));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
if ((arr === null) || (arr[2] !== "B")) {
|
||||
throw new Test262Error('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2]));
|
||||
}
|
||||
|
|
|
@ -9,17 +9,14 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /\1(A)(B)\2/.exec("ABB");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "ABB")) {
|
||||
throw new Test262Error('#1: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[0] === "ABB". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ((arr === null) || (arr[1] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[1] === "A". Actual. ' + (arr && arr[1]));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
if ((arr === null) || (arr[2] !== "B")) {
|
||||
throw new Test262Error('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2]));
|
||||
}
|
||||
|
|
|
@ -9,14 +9,12 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /((((((((((A))))))))))\1\2\3\4\5\6\7\8\9\10/.exec("AAAAAAAAAAA");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) {
|
||||
throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
for (var i = 1; i <= 10; i++) {
|
||||
//CHECK#i
|
||||
if ((arr === null) || (arr[i] !== "A")) {
|
||||
if ((arr === null) || (arr[i] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i]));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,14 +9,12 @@ description: DecimalIntegerLiteral is not 0
|
|||
|
||||
var arr = /((((((((((A))))))))))\10\9\8\7\6\5\4\3\2\1/.exec("AAAAAAAAAAA");
|
||||
|
||||
//CHECK#1
|
||||
if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) {
|
||||
throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0]));
|
||||
}
|
||||
|
||||
for (var i = 1; i <= 10; i++) {
|
||||
//CHECK#i
|
||||
if ((arr === null) || (arr[i] !== "A")) {
|
||||
if ((arr === null) || (arr[i] !== "A")) {
|
||||
throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i]));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,13 +9,14 @@ es5id: 15.10.2.12_A3_T5
|
|||
description: non-w
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
|
||||
if (/\w/.exec(non_w) !== null) {
|
||||
throw new Test262Error('#1: non-w');
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
assert.sameValue(
|
||||
/\w/.exec(non_w),
|
||||
null,
|
||||
'/w/.exec(""fnrtv~`!@#$%^&*()-+={[}]|:;\'<,>./? " + \'"\'") must return null'
|
||||
);
|
||||
|
||||
var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
var regexp_w = /\w/g;
|
||||
var k = 0;
|
||||
|
@ -23,6 +24,4 @@ while (regexp_w.exec(non_W) !== null) {
|
|||
k++;
|
||||
}
|
||||
|
||||
if (non_W.length !== k) {
|
||||
throw new Test262Error('#2: non-W');
|
||||
}
|
||||
assert.sameValue(non_W.length, k, 'The value of non_W.length is expected to equal the value of k');
|
||||
|
|
|
@ -9,7 +9,6 @@ es5id: 15.10.2.12_A4_T5
|
|||
description: non-w
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
|
||||
var regexp_W = /\W/g;
|
||||
var k = 0;
|
||||
|
@ -17,12 +16,12 @@ while (regexp_W.exec(non_w) !== null) {
|
|||
k++;
|
||||
}
|
||||
|
||||
if (non_w.length !== k) {
|
||||
throw new Test262Error('#1: non-w');
|
||||
}
|
||||
assert.sameValue(non_w.length, k, 'The value of non_w.length is expected to equal the value of k');
|
||||
|
||||
//CHECK#2
|
||||
var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
if (/\W/.exec(non_W) !== null) {
|
||||
throw new Test262Error('#2: non-W');
|
||||
}
|
||||
|
||||
assert.sameValue(
|
||||
/\W/.exec(non_W),
|
||||
null,
|
||||
'/W/.exec(""_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"") must return null'
|
||||
);
|
||||
|
|
|
@ -10,9 +10,5 @@ es5id: 15.10.2.13_A1_T1
|
|||
description: Execute /[]a/.test("\0a\0a") and check results
|
||||
---*/
|
||||
|
||||
var __executed = /[]a/.test("\0a\0a");;
|
||||
|
||||
//CHECK#1
|
||||
if (__executed) {
|
||||
throw new Test262Error('#1: /[]a/.test("\\0a\\0a") === false');
|
||||
}
|
||||
var __executed = /[]a/.test("\0a\0a");
|
||||
assert(!__executed, 'The value of !__executed is expected to be true');
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["abc324234"];
|
|||
__expected.index = 2;
|
||||
__expected.input = "\n\n\abc324234\n";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["abc"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abc";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["abc"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abc";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -18,24 +18,28 @@ var __expected = ["def"];
|
|||
__expected.index = 15;
|
||||
__expected.input = "a1b b2c c3d def f4g";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["*&$"];
|
|||
__expected.index = 3;
|
||||
__expected.input = "123*&$abc";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["1\nl"];
|
|||
__expected.index = 4;
|
||||
__expected.input = "line1\nline2";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,4 @@ description: Execute /[]/.exec("a[b\n[]\tc]d") and check results
|
|||
|
||||
var __executed = /[]/.exec("a[b\n[]\tc]d");
|
||||
|
||||
//CHECK#1
|
||||
if (__executed !== null) {
|
||||
throw new Test262Error('#1: /[]/.exec("a[b\\n[]\\tc]d") === false');
|
||||
}
|
||||
assert.sameValue(__executed, null, 'The value of __executed is expected to be null');
|
||||
|
|
|
@ -10,9 +10,5 @@ es5id: 15.10.2.13_A1_T2
|
|||
description: Execute /a[]/.test("\0a\0a") and check results
|
||||
---*/
|
||||
|
||||
var __executed = /a[]/.test("\0a\0a");;
|
||||
|
||||
//CHECK#1
|
||||
if (__executed) {
|
||||
throw new Test262Error('#1: /a[]/.test("\\0a\\0a") === false');
|
||||
}
|
||||
var __executed = /a[]/.test("\0a\0a");
|
||||
assert(!__executed, 'The value of !__executed is expected to be true');
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["qy"];
|
|||
__expected.index = 2;
|
||||
__expected.input = "qYqy ";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["qy"];
|
|||
__expected.index = 3;
|
||||
__expected.input = "tqaqy ";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["qa"];
|
|||
__expected.index = 1;
|
||||
__expected.input = "tqa\t qy ";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["abcde"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abcde";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,4 @@ description: Execute /ab[erst]de/.test("abcde") and check results
|
|||
|
||||
var __executed = /ab[erst]de/.test("abcde");
|
||||
|
||||
//CHECK#1
|
||||
if (__executed) {
|
||||
throw new Test262Error('#1: /ab[erst]de/.test("abcde") === false');
|
||||
}
|
||||
assert(!__executed, 'The value of !__executed is expected to be true');
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["defgh"];
|
|||
__expected.index = 3;
|
||||
__expected.input = "abcdefghijkl";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["6de"];
|
|||
__expected.index = 3;
|
||||
__expected.input = "abc6defghijkl";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["\na"];
|
|||
__expected.index = 1;
|
||||
__expected.input = "a\naba";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["a\t"];
|
|||
__expected.index = 3;
|
||||
__expected.input = " a\t\n";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["aY "];
|
|||
__expected.index = 9;
|
||||
__expected.input = "ab an az aY n";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["easy"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "easy\bto\u0008ride";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["abc"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abc";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,4 @@ description: Execute /a[^b]c/.test("abc") and check results
|
|||
|
||||
var __executed = /a[^b]c/.test("abc");
|
||||
|
||||
//CHECK#1
|
||||
if (__executed) {
|
||||
throw new Test262Error('#1: /a[^b]c/.test("abc") === false');
|
||||
}
|
||||
assert(!__executed, 'The value of !__executed is expected to be true');
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["%&*@"];
|
|||
__expected.index = 9;
|
||||
__expected.input = "abc#$%def%&*@ghi";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,24 +16,28 @@ var __expected = ["a"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abc#$%def%&*@ghi";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -13,24 +13,28 @@ var __expected = ["c\bd"];
|
|||
__expected.index = 2;
|
||||
__expected.input = "abc\bdef";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -13,24 +13,28 @@ var __expected = ["c\b\b\bd"];
|
|||
__expected.index = 2;
|
||||
__expected.input = "abc\b\b\bdef";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -13,24 +13,28 @@ var __expected = ["abc"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abc\bdef";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -13,24 +13,28 @@ var __expected = ["abcdef"];
|
|||
__expected.index = 0;
|
||||
__expected.input = "abcdef";
|
||||
|
||||
//CHECK#1
|
||||
if (__executed.length !== __expected.length) {
|
||||
throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.length,
|
||||
__expected.length,
|
||||
'The value of __executed.length is expected to equal the value of __expected.length'
|
||||
);
|
||||
|
||||
//CHECK#2
|
||||
if (__executed.index !== __expected.index) {
|
||||
throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.index,
|
||||
__expected.index,
|
||||
'The value of __executed.index is expected to equal the value of __expected.index'
|
||||
);
|
||||
|
||||
//CHECK#3
|
||||
if (__executed.input !== __expected.input) {
|
||||
throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed.input,
|
||||
__expected.input,
|
||||
'The value of __executed.input is expected to equal the value of __expected.input'
|
||||
);
|
||||
|
||||
//CHECK#4
|
||||
for(var index=0; index<__expected.length; index++) {
|
||||
if (__executed[index] !== __expected[index]) {
|
||||
throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
|
||||
}
|
||||
assert.sameValue(
|
||||
__executed[index],
|
||||
__expected[index],
|
||||
'The value of __executed[index] is expected to equal the value of __expected[index]'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
throwing the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
throwing the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
throwing the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
throwing the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
throwing the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
|
@ -16,11 +16,14 @@ description: >
|
|||
the correct exception
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
throw new Test262Error('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a")));
|
||||
} catch (e) {
|
||||
if((e instanceof SyntaxError) !== true){
|
||||
throw new Test262Error('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
|
||||
}
|
||||
assert.sameValue(
|
||||
e instanceof SyntaxError,
|
||||
true,
|
||||
'The result of evaluating (e instanceof SyntaxError) is expected to be true'
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Convert to assert.throws() format.
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue