Added more tests

This commit is contained in:
Eduard Urbach 2024-08-11 14:00:51 +02:00
parent 53318589d6
commit cc215a27c7
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
3 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
"Hello"

View File

@ -0,0 +1,3 @@
main() {
loop {
}

View File

@ -17,6 +17,7 @@ var errs = []struct {
{"EmptySwitch.q", errors.EmptySwitch}, {"EmptySwitch.q", errors.EmptySwitch},
{"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition}, {"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition},
{"ExpectedFunctionName.q", errors.ExpectedFunctionName}, {"ExpectedFunctionName.q", errors.ExpectedFunctionName},
{"ExpectedFunctionName2.q", errors.ExpectedFunctionName},
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters}, {"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
{"ExpectedIfBeforeElse.q", errors.ExpectedIfBeforeElse}, {"ExpectedIfBeforeElse.q", errors.ExpectedIfBeforeElse},
{"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse}, {"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse},
@ -29,6 +30,7 @@ var errs = []struct {
{"InvalidCharacter3.q", &errors.InvalidCharacter{Character: "@"}}, {"InvalidCharacter3.q", &errors.InvalidCharacter{Character: "@"}},
{"InvalidCharacter4.q", &errors.InvalidCharacter{Character: "+++"}}, {"InvalidCharacter4.q", &errors.InvalidCharacter{Character: "+++"}},
{"MissingBlockEnd.q", errors.MissingBlockEnd}, {"MissingBlockEnd.q", errors.MissingBlockEnd},
{"MissingBlockEnd2.q", errors.MissingBlockEnd},
{"MissingBlockStart.q", errors.MissingBlockStart}, {"MissingBlockStart.q", errors.MissingBlockStart},
{"MissingGroupEnd.q", errors.MissingGroupEnd}, {"MissingGroupEnd.q", errors.MissingGroupEnd},
{"MissingGroupStart.q", errors.MissingGroupStart}, {"MissingGroupStart.q", errors.MissingGroupStart},