Skip to content

Commit

Permalink
Polish context-free exception test
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Rebours <[email protected]>
  • Loading branch information
NathanReb committed Jan 30, 2024
1 parent d73ae80 commit c3f3c7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/driver/exception_handling/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,20 @@ when the -embed-errors flag is not passed

In the case of Special functions

$ echo "n_args " > impl.ml
$ echo "n_args2 " >> impl.ml
$ echo "let x1 = n_args" > impl.ml
$ echo "let x2 = n_args2" >> impl.ml
When embed-errors is not passed
$ ./special_functions.exe impl.ml
File "impl.ml", lines 1-2, characters 0-7:
File "impl.ml", line 1, characters 9-15:
Error: error special function
[1]

When embed-errors is not passed
$ ./special_functions.exe -embed-errors impl.ml
[%%ocaml.error "error special function"]
[%%ocaml.error "second error special function"]
;;n_args n_args2
let x1 = n_args
let x2 = n_args2

In the case of whole file transformations:

Expand Down

0 comments on commit c3f3c7a

Please sign in to comment.