Added more tests
This commit is contained in:
parent
8c74b4b05f
commit
0b4b10ed4c
6 changed files with 84 additions and 22 deletions
|
@ -20,12 +20,14 @@ func TestErrors(t *testing.T) {
|
|||
{"ExpectedFunctionParameters.q", errors.ExpectedFunctionParameters},
|
||||
{"InvalidInstructionIdentifier.q", &errors.InvalidInstruction{Instruction: "abc"}},
|
||||
{"InvalidInstructionNumber.q", &errors.InvalidInstruction{Instruction: "123"}},
|
||||
{"InvalidExpression.q", errors.InvalidExpression},
|
||||
{"MissingAssignValue.q", errors.MissingAssignValue},
|
||||
{"MissingBlockEnd.q", errors.MissingBlockEnd},
|
||||
{"MissingBlockStart.q", errors.MissingBlockStart},
|
||||
{"MissingGroupEnd.q", errors.MissingGroupEnd},
|
||||
{"MissingGroupStart.q", errors.MissingGroupStart},
|
||||
{"VariableAlreadyExists.q", &errors.VariableAlreadyExists{Name: "a"}},
|
||||
{"UnknownIdentifier.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue