Skip to content

Commit

Permalink
more tests, #53
Browse files Browse the repository at this point in the history
  • Loading branch information
bahuljain committed May 2, 2016
1 parent 250b3de commit 9fe263b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/compiler-tests/fail-recursive2.jsjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val factorial = /\(n) => if n <= 1 then 1 else n * factorial("hello");
1 change: 1 addition & 0 deletions test/compiler-tests/fail-recursive2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Type error: expected value of type 'num', got a value of type 'string' instead
1 change: 1 addition & 0 deletions test/compiler-tests/fail-recursive3.jsjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val factorial = /\(n) => if n <= "a" then 1 else n * factorial(n-1);
1 change: 1 addition & 0 deletions test/compiler-tests/fail-recursive3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Type error: expected value of type 'num', got a value of type 'string' instead

0 comments on commit 9fe263b

Please sign in to comment.