diff options
Diffstat (limited to 'website/resources/scripts/testcases2/15.10.1_Patterns.json')
-rw-r--r-- | website/resources/scripts/testcases2/15.10.1_Patterns.json | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/website/resources/scripts/testcases2/15.10.1_Patterns.json b/website/resources/scripts/testcases2/15.10.1_Patterns.json new file mode 100644 index 000000000..b7111d56b --- /dev/null +++ b/website/resources/scripts/testcases2/15.10.1_Patterns.json @@ -0,0 +1,104 @@ +{ + "testCollection": { + "name": "15.10.1_Patterns", + "numTests": 16, + "tests": [ + { + "section": "15.10.1", + "description": "Tested RegExp is \"a**\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a**\") throw SyntaxError. Actual: ' + (new RegExp(\"a**\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError !== true)) {\n\t\t$ERROR('#1.2: new RegExp(\"a**\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n", + "id": "S15.10.1_A1_T1" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"++a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"++a\") throw SyntaxError. Actual: ' + (new RegExp(\"++a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"++a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T10" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"?a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"?a\") throw SyntaxError. Actual: ' + (new RegExp(\"?a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"?a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T11" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"??a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"??a\") throw SyntaxError. Actual: ' + (new RegExp(\"??a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"??a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T12" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"x{1}{1,}\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"x{1}{1,}\") throw SyntaxError. Actual: ' + (new RegExp(\"x{1}{1,}\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"x{1}{1,}\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T13" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"x{1,2}{1}\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"x{1,2}{1}\") throw SyntaxError. Actual: ' + (new RegExp(\"x{1,2}{1}\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"x{1,2}{1}\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T14" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"x{1,}{1}\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"x{1,}{1}\") throw SyntaxError. Actual: ' + (new RegExp(\"x{1,}{1}\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"x{1,}{1}\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T15" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"x{0,1}{1,}\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"x{0,1}{1,}\") throw SyntaxError. Actual: ' + (new RegExp(\"x{0,1}{1,}\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"x{0,1}{1,}\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T16" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"a***\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a***\") throw SyntaxError. Actual: ' + (new RegExp(\"a***\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"a***\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T2" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"a++\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a++\") throw SyntaxError. Actual: ' + (new RegExp(\"a++\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"a++\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T3" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"a+++\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a+++\") throw SyntaxError. Actual: ' + (new RegExp(\"a+++\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"a+++\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T4" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"a???\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a???\") throw SyntaxError. Actual: ' + (new RegExp(\"a???\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"a???\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T5" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"a????\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"a????\") throw SyntaxError. Actual: ' + (new RegExp(\"a????\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"a????\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T6" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"*a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"*a\") throw SyntaxError. Actual: ' + (new RegExp(\"*a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"*a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T7" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"**a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"**a\") throw SyntaxError. Actual: ' + (new RegExp(\"**a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"**a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T8" + }, + { + "section": "15.10.1", + "description": "Tested RegExp is \"+a\"", + "test": "//CHECK#1\ntry {\n\t$ERROR('#1.1: new RegExp(\"+a\") throw SyntaxError. Actual: ' + (new RegExp(\"+a\")));\n} catch (e) {\n\tif ((e instanceof SyntaxError) !== true) {\n\t\t$ERROR('#1.2: new RegExp(\"+a\") throw SyntaxError. Actual: ' + (e));\n\t}\n}\n\n", + "id": "S15.10.1_A1_T9" + } + ] + } +} |