Added more tests

This commit is contained in:
Eduard Urbach 2024-06-15 20:25:37 +02:00
parent a48f2868fb
commit 1b99722cd8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 32 additions and 6 deletions

View file

@ -18,6 +18,9 @@ func TestErrors(t *testing.T) {
{"ExpectedFunctionDefinition.q", errors.ExpectedFunctionDefinition},
{"ExpectedFunctionName.q", errors.ExpectedFunctionName},
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
{"InvalidInstruction-Identifier.q", &errors.InvalidInstruction{Instruction: "abc"}},
{"InvalidInstruction-Number.q", &errors.InvalidInstruction{Instruction: "123"}},
{"MissingAssignValue.q", errors.MissingAssignValue},
{"MissingBlockEnd.q", errors.MissingBlockEnd},
{"MissingBlockStart.q", errors.MissingBlockStart},
{"MissingGroupEnd.q", errors.MissingGroupEnd},