Added more tests
This commit is contained in:
parent
9458253f31
commit
d026010d32
@ -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
1
src/errors/testdata/MissingBlockEnd.q
vendored
Normal file
@ -0,0 +1 @@
|
||||
main(){
|
1
src/errors/testdata/MissingBlockStart.q
vendored
Normal file
1
src/errors/testdata/MissingBlockStart.q
vendored
Normal file
@ -0,0 +1 @@
|
||||
main()}
|
1
src/errors/testdata/MissingGroupEnd.q
vendored
Normal file
1
src/errors/testdata/MissingGroupEnd.q
vendored
Normal file
@ -0,0 +1 @@
|
||||
main(
|
1
src/errors/testdata/MissingGroupStart.q
vendored
Normal file
1
src/errors/testdata/MissingGroupStart.q
vendored
Normal file
@ -0,0 +1 @@
|
||||
main)
|
Loading…
Reference in New Issue
Block a user