Added more tests

This commit is contained in:
Eduard Urbach 2024-06-14 09:23:21 +02:00
parent e3b26c79f4
commit 80e195167c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 9 additions and 1 deletions

View file

@ -15,8 +15,12 @@ func TestErrors(t *testing.T) {
File string File string
ExpectedError error ExpectedError error
}{ }{
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
{"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition}, {"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 { 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)