Skip to content

Commit 6c00e04

Browse files
committed
tests: use new check command directly
1 parent 3879d93 commit 6c00e04

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/typechecker/case.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
> g() -> f(1).
1111
>
1212
> EOF
13-
$ caramelc compile --dump-ast case_test.erl
13+
$ caramelc check --dump-ast case_test.erl
1414
((file_name case_test.erl) (behaviours ()) (module_name (Atom case_test))
1515
(attributes ())
1616
(exports (((exp_type Export_function) (exp_name (Atom f)) (exp_arity 1))))

tests/typechecker/fib.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> fib(N) -> erlang:'+'(fib(erlang:'-'(N,1)), fib(erlang:'-'(N,2))).
77
> fib() -> fib(no).
88
> EOF
9-
$ caramelc compile --dump-ast fib.erl
9+
$ caramelc check --dump-ast fib.erl
1010
((file_name fib.erl) (behaviours ()) (module_name (Atom fib)) (attributes ())
1111
(exports
1212
(((exp_type Export_function) (exp_name (Atom fib)) (exp_arity 1))))

tests/typechecker/hello_world.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> -export([hello_world/0]).
44
> hello_world() -> print_int(<<"Hello world!">>).
55
> EOF
6-
$ caramelc compile --dump-ast hello_world.erl
6+
$ caramelc check --dump-ast hello_world.erl
77
((file_name hello_world.erl) (behaviours ()) (module_name (Atom hello_world))
88
(attributes ())
99
(exports

tests/typechecker/typed_send.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
> spawn_int(S) -> erlang:spawn(fun () -> loop(S) end).
1010
> start() -> spawn_int(0) ! {replace, yes}.
1111
> EOF
12-
$ caramelc compile --dump-ast erlang.ml typed_process.erl
12+
$ caramelc check --dump-ast erlang.ml typed_process.erl
1313
((file_name typed_process.erl) (behaviours ())
1414
(module_name (Atom typed_process)) (attributes ())
1515
(exports

0 commit comments

Comments
 (0)