mirror of https://github.com/tc39/test262.git
111 lines
18 KiB
JSON
111 lines
18 KiB
JSON
|
{
|
||
|
"testCollection": {
|
||
|
"name": "15.10.2.3_Disjunction",
|
||
|
"numTests": 17,
|
||
|
"tests": [
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /a|ab/.exec(\"abc\") and check results",
|
||
|
"test": "__executed = /a|ab/.exec(\"abc\");\n\n__expected = [\"a\"];\n__expected.index = 0;\n__expected.input = \"abc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /a|ab/.exec(\"abc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /a|ab/.exec(\"abc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /a|ab/.exec(\"abc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /a|ab/.exec(\"abc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T1"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\") and check results",
|
||
|
"test": "__executed = /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\");\n\n__expected = [\"eF\"];\n__expected.index = 3;\n__expected.input = \"AEKeFCDab\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T10"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /11111|111/.exec(\"1111111111111111\") and check results",
|
||
|
"test": "__executed = /11111|111/.exec(\"1111111111111111\");\n\n__expected = [\"11111\"];\n__expected.index = 0;\n__expected.input = \"1111111111111111\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /11111|111/.exec(\"1111111111111111\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /11111|111/.exec(\"1111111111111111\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /11111|111/.exec(\"1111111111111111\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /11111|111/.exec(\"1111111111111111\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T11"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /xyz|.../.exec(\"abc\") and check results",
|
||
|
"test": "__executed = /xyz|.../.exec(\"abc\");\n\n__expected = [\"abc\"];\n__expected.index = 0;\n__expected.input = \"abc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /xyz|.../.exec(\"abc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /xyz|.../.exec(\"abc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /xyz|.../.exec(\"abc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /xyz|.../.exec(\"abc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T12"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /(.)..|abc/.exec(\"abc\") and check results",
|
||
|
"test": "__executed = /(.)..|abc/.exec(\"abc\");\n\n__expected = [\"abc\",\"a\"];\n__expected.index = 0;\n__expected.input = \"abc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(.)..|abc/.exec(\"abc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(.)..|abc/.exec(\"abc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(.)..|abc/.exec(\"abc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(.)..|abc/.exec(\"abc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T13"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /.+: gr(a|e)y/.exec(\"color: grey\") and check results",
|
||
|
"test": "__executed = /.+: gr(a|e)y/.exec(\"color: grey\");\n\n__expected = [\"color: grey\",\"e\"];\n__expected.index = 0;\n__expected.input = \"color: grey\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /.+: gr(a|e)y/.exec(\"color: grey\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /.+: gr(a|e)y/.exec(\"color: grey\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /.+: gr(a|e)y/.exec(\"color: grey\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /.+: gr(a|e)y/.exec(\"color: grey\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T14"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\") and check results",
|
||
|
"test": "__executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\");\n\n__expected = [\"Bob\",undefined,\"Bob\", undefined, undefined];\n__expected.index = 3;\n__expected.input = \"Hi Bob\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec(\"Hi Bob\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T15"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /()|/.exec(\"\") and check results",
|
||
|
"test": "__executed = /()|/.exec(\"\");\n\n__expected = [\"\",\"\"];\n__expected.index = 0;\n__expected.input = \"\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /()|/.exec(\"\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /()|/.exec(\"\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /()|/.exec(\"\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /()|/.exec(\"\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T16"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /|()/.exec(\"\") and check results",
|
||
|
"test": "__executed = /|()/.exec(\"\");\n\n__expected = [\"\",undefined];\n__expected.index = 0;\n__expected.input = \"\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /|()/.exec(\"\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /|()/.exec(\"\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /|()/.exec(\"\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /|()/.exec(\"\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T17"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /((a)|(ab))((c)|(bc))/.exec(\"abc\") and check results",
|
||
|
"test": "__executed = /((a)|(ab))((c)|(bc))/.exec(\"abc\");\n\n__expected = [\"abc\", \"a\", \"a\", undefined, \"bc\", undefined, \"bc\"];\n__expected.index = 0;\n__expected.input = \"abc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec(\"abc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec(\"abc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec(\"abc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec(\"abc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T2"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\") and check results",
|
||
|
"test": "__executed = /\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\");\n\n__expected = [\"cour\"];\n__expected.index = 13;\n__expected.input = \"2, 12 and of course repeat 12\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and of course repeat 12\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T3"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\") and check results",
|
||
|
"test": "__executed = /\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\");\n\n__expected = [\"234\"];\n__expected.index = 10;\n__expected.input = \"2, 12 and 234 AND of course repeat 12\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /\\\\d{3}|[a-z]{4}/.exec(\"2, 12 and 234 AND of course repeat 12\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T4"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /\\d{3}|[a-z]{4}/.test(\"2, 12 and 23 AND 0.00.1\") and check results",
|
||
|
"test": "__executed = /\\d{3}|[a-z]{4}/.test(\"2, 12 and 23 AND 0.00.1\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /\\\\d{3}|[a-z]{4}/.test(\"2, 12 and 23 AND 0.00.1\") === false');\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T5"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /ab|cd|ef/i.exec(\"AEKFCD\") and check results",
|
||
|
"test": "__executed = /ab|cd|ef/i.exec(\"AEKFCD\");\n\n__expected = [\"CD\"];\n__expected.index = 4;\n__expected.input = \"AEKFCD\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /ab|cd|ef/i.exec(\"AEKFCD\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /ab|cd|ef/i.exec(\"AEKFCD\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /ab|cd|ef/i.exec(\"AEKFCD\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /ab|cd|ef/i.exec(\"AEKFCD\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T6"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /ab|cd|ef/.test(\"AEKFCD\") and check results",
|
||
|
"test": "__executed = /ab|cd|ef/.test(\"AEKFCD\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /ab|cd|ef/.test(\"AEKFCD\") === false');\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T7"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /(?:ab|cd)+|ef/i.exec(\"AEKFCD\") and check results",
|
||
|
"test": "__executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCD\");\n\n__expected = [\"CD\"];\n__expected.index = 4;\n__expected.input = \"AEKFCD\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCD\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCD\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCD\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCD\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T8"
|
||
|
},
|
||
|
{
|
||
|
"section": "15.10.2.3",
|
||
|
"description": "Execute /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\") and check results",
|
||
|
"test": "__executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\");\n\n__expected = [\"CDab\"];\n__expected.index = 4;\n__expected.input = \"AEKFCDab\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
|
||
|
"id": "S15.10.2.3_A1_T9"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|