Added more tests
This commit is contained in:
parent
53318589d6
commit
cc215a27c7
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…
Reference in New Issue
Block a user