Skip to content

Commit f119e81

Browse files
committed
Make test more robust
1 parent 6cf371e commit f119e81

File tree

1 file changed

+5
-4
lines changed
  • test/extract_code/mld_extraction.t

1 file changed

+5
-4
lines changed

test/extract_code/mld_extraction.t/run.t

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ We can output to a file
7878
let y = x + 6. (* This is a typing error *)
7979

8080

81-
Let's check line directive work:
81+
Let's check line directive work ("-color always" to make sure the error message
82+
is the same in all context):
8283

83-
$ ocaml error.ml
84+
$ ocaml -color always error.ml
8485
File "main.mld", line 26, characters 15-17:
85-
Error: This expression has type "float" but an expression was expected of type
86-
"int"
86+
Error: This expression has type float but an expression was expected of type
87+
int
8788
[2]
8889

8990
Here is the line 26, and the characters 15-17:

0 commit comments

Comments
 (0)