diff --git a/tests/17_err-losing-variable.test b/tests/17_err-losing-variable.test index 0436ae0..d876cfb 100644 --- a/tests/17_err-losing-variable.test +++ b/tests/17_err-losing-variable.test @@ -1,7 +1,7 @@ -int foo(int a) { +int foo (int a) { return a; } -void main() { +void main () { void b = foo(1); # Error on line 6 col 17: Expected int but given void. } diff --git a/tests/18_err-no-type-arg.test b/tests/18_err-no-type-arg.test index a391c2f..7bcf98c 100644 --- a/tests/18_err-no-type-arg.test +++ b/tests/18_err-no-type-arg.test @@ -1,3 +1,3 @@ -int main(a) { # Error on line 1 col 9: Syntax error. +int main (a) { # Error on line 1 col 9: Syntax error. return a; }