Added more tests

This commit is contained in:
Eduard Urbach 2024-06-14 09:23:21 +02:00
parent 9458253f31
commit d026010d32
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
5 changed files with 9 additions and 1 deletions

View File

@ -15,8 +15,12 @@ func TestErrors(t *testing.T) {
File string
ExpectedError error
}{
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
{"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition},
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
{"MissingBlockEnd.q", errors.MissingBlockEnd},
{"MissingBlockStart.q", errors.MissingBlockStart},
{"MissingGroupEnd.q", errors.MissingGroupEnd},
{"MissingGroupStart.q", errors.MissingGroupStart},
}
for _, test := range tests {

1
src/errors/testdata/MissingBlockEnd.q vendored Normal file
View File

@ -0,0 +1 @@
main(){

View File

@ -0,0 +1 @@
main()}

1
src/errors/testdata/MissingGroupEnd.q vendored Normal file
View File

@ -0,0 +1 @@
main(

View File

@ -0,0 +1 @@
main)