Skip to content

Commit 6a182bd

Browse files
committed
Fix stream test
1 parent 7e00282 commit 6a182bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/tests-ocaml/match-exception/streams.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ let rec iter_stream_match f s =
2929
end
3030
;;
3131

32-
let test_iter_stream =
32+
let test_iter_stream () =
3333
let limit = 10000000 in
3434
try
3535
iter_stream_match ignore (make_stream_up_to limit);
3636
print_endline "iter_stream with handler case (match) is tail recursive"
3737
with Stack_overflow ->
3838
assert false
3939
;;
40+
41+
let () = test_iter_stream ()
42+
;;

0 commit comments

Comments
 (0)