Implemented boolean literals
This commit is contained in:
3
tests/errors/InvalidCondition.q
Normal file
3
tests/errors/InvalidCondition.q
Normal file
@ -0,0 +1,3 @@
|
||||
main() {
|
||||
if 42 {}
|
||||
}
|
@ -22,6 +22,7 @@ var errs = []struct {
|
||||
{"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse},
|
||||
{"ExpectedStructName.q", errors.ExpectedStructName},
|
||||
{"ExpectedPackageName.q", errors.ExpectedPackageName},
|
||||
{"InvalidCondition.q", errors.InvalidCondition},
|
||||
{"InvalidInstructionCall.q", &errors.InvalidInstruction{Instruction: "sys.write"}},
|
||||
{"InvalidInstructionExpression.q", &errors.InvalidInstruction{Instruction: "2+3"}},
|
||||
{"InvalidInstructionIdentifier.q", &errors.InvalidInstruction{Instruction: "abc"}},
|
||||
|
Reference in New Issue
Block a user