diff --git a/tests/errors/ExpectedFunctionName2.q b/tests/errors/ExpectedFunctionName2.q new file mode 100644 index 0000000..5638d8b --- /dev/null +++ b/tests/errors/ExpectedFunctionName2.q @@ -0,0 +1 @@ +"Hello" \ No newline at end of file diff --git a/tests/errors/MissingBlockEnd2.q b/tests/errors/MissingBlockEnd2.q new file mode 100644 index 0000000..5562918 --- /dev/null +++ b/tests/errors/MissingBlockEnd2.q @@ -0,0 +1,3 @@ +main() { + loop { +} \ No newline at end of file diff --git a/tests/errors_test.go b/tests/errors_test.go index 71dbdf9..7ecdddc 100644 --- a/tests/errors_test.go +++ b/tests/errors_test.go @@ -17,6 +17,7 @@ var errs = []struct { {"EmptySwitch.q", errors.EmptySwitch}, {"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition}, {"ExpectedFunctionName.q", errors.ExpectedFunctionName}, + {"ExpectedFunctionName2.q", errors.ExpectedFunctionName}, {"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters}, {"ExpectedIfBeforeElse.q", errors.ExpectedIfBeforeElse}, {"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse}, @@ -29,6 +30,7 @@ var errs = []struct { {"InvalidCharacter3.q", &errors.InvalidCharacter{Character: "@"}}, {"InvalidCharacter4.q", &errors.InvalidCharacter{Character: "+++"}}, {"MissingBlockEnd.q", errors.MissingBlockEnd}, + {"MissingBlockEnd2.q", errors.MissingBlockEnd}, {"MissingBlockStart.q", errors.MissingBlockStart}, {"MissingGroupEnd.q", errors.MissingGroupEnd}, {"MissingGroupStart.q", errors.MissingGroupStart},