Added more tests
This commit is contained in:
parent
a9f305dec2
commit
230bb36709
3
tests/errors/UnknownIdentifier3.q
Normal file
3
tests/errors/UnknownIdentifier3.q
Normal file
@ -0,0 +1,3 @@
|
||||
main() {
|
||||
x := 1 + f(x)
|
||||
}
|
7
tests/errors/UnknownIdentifier4.q
Normal file
7
tests/errors/UnknownIdentifier4.q
Normal file
@ -0,0 +1,7 @@
|
||||
main() {
|
||||
x := 1 + f(x)
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x
|
||||
}
|
@ -35,6 +35,8 @@ var errs = []struct {
|
||||
{"VariableAlreadyExists.q", &errors.VariableAlreadyExists{Name: "x"}},
|
||||
{"UnknownIdentifier.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
{"UnknownIdentifier2.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
{"UnknownIdentifier3.q", &errors.UnknownIdentifier{Name: "f"}},
|
||||
{"UnknownIdentifier4.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
{"UnusedVariable.q", &errors.UnusedVariable{Name: "x"}},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user