Added more tests
This commit is contained in:
parent
e3a9ece68c
commit
7c81c3451f
3 changed files with 6 additions and 0 deletions
1
tests/errors/ExpectedFunctionName2.q
Normal file
1
tests/errors/ExpectedFunctionName2.q
Normal file
|
@ -0,0 +1 @@
|
|||
"Hello"
|
3
tests/errors/MissingBlockEnd2.q
Normal file
3
tests/errors/MissingBlockEnd2.q
Normal file
|
@ -0,0 +1,3 @@
|
|||
main() {
|
||||
loop {
|
||||
}
|
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue