update tests
This commit is contained in:
parent
6f4eb269de
commit
378b054812
10 changed files with 9 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ OUTPUT = output
|
|||
|
||||
TESTS = $(wildcard $(TESTS_DIR)/*.test)
|
||||
|
||||
INDENT = 21
|
||||
INDENT = 38
|
||||
|
||||
main:
|
||||
ocamlbuild -use-menhir -no-hygiene $(MAIN).byte
|
||||
|
|
1
tests/03_bool.test
Normal file
1
tests/03_bool.test
Normal file
|
@ -0,0 +1 @@
|
|||
bool a = true;
|
1
tests/04_err-unbound-variable.test
Normal file
1
tests/04_err-unbound-variable.test
Normal file
|
@ -0,0 +1 @@
|
|||
foo = 1312; # Error on line 1 col 4 : unbound variable 'foo'
|
1
tests/05_err-unbound-variable.test
Normal file
1
tests/05_err-unbound-variable.test
Normal file
|
@ -0,0 +1 @@
|
|||
int foo = bar; # Error on line 1 col 10: unbound variable 'bar'
|
2
tests/06_warn-unassigned-variable.test
Normal file
2
tests/06_warn-unassigned-variable.test
Normal file
|
@ -0,0 +1,2 @@
|
|||
int foo;
|
||||
int bar = foo; # Warning on line 2 col 10 : unassigned variable 'foo'
|
1
tests/07_err-type-const.test
Normal file
1
tests/07_err-type-const.test
Normal file
|
@ -0,0 +1 @@
|
|||
int foo = true; # Error on line 1 col 10: expected int but given bool
|
2
tests/08_err-type-variable.test
Normal file
2
tests/08_err-type-variable.test
Normal file
|
@ -0,0 +1,2 @@
|
|||
int foo = 1312;
|
||||
bool bar = foo; # Error on line 2 col 11: expected bool but given int
|
Reference in a new issue