Added more tests
This commit is contained in:
parent
e4cbb91f61
commit
c8b5c4dbfe
8 changed files with 73 additions and 13 deletions
7
tests/errors/TypeMismatch3.q
Normal file
7
tests/errors/TypeMismatch3.q
Normal file
|
@ -0,0 +1,7 @@
|
|||
import mem
|
||||
|
||||
main() {
|
||||
a := mem.alloc(16)
|
||||
b := a["not a number"]
|
||||
b += 1
|
||||
}
|
6
tests/errors/TypeMismatch4.q
Normal file
6
tests/errors/TypeMismatch4.q
Normal file
|
@ -0,0 +1,6 @@
|
|||
import mem
|
||||
|
||||
main() {
|
||||
a := mem.alloc(16)
|
||||
a["not a number"] = 42
|
||||
}
|
6
tests/errors/UntypedExpression.q
Normal file
6
tests/errors/UntypedExpression.q
Normal file
|
@ -0,0 +1,6 @@
|
|||
main() {
|
||||
a := unknown()
|
||||
a += 1
|
||||
}
|
||||
|
||||
unknown() {}
|
Loading…
Add table
Add a link
Reference in a new issue