File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ let test_mk =
32
32
`Msg ({| File " _none_" , line 1 : invalid code block : |} ^ m))
33
33
expected
34
34
in
35
- Alcotest. (check (result Testable. block Testable. msg ))
35
+ Alcotest. (check (Testable. errormsg Testable. block ))
36
36
test_name expected actual
37
37
in
38
38
(test_name, `Quick , test_fun)
Original file line number Diff line number Diff line change 1
1
module Testable = struct
2
2
open Mdx.Label
3
+ include Testable
3
4
4
5
let relation = Alcotest. testable Relation. pp ( = )
5
-
6
- let msg =
7
- Alcotest. testable (fun fmt (`Msg e ) -> Format. pp_print_string fmt e) ( = )
8
-
9
6
let label = Alcotest. testable pp ( = )
10
7
end
11
8
@@ -31,7 +28,7 @@ let test_raw_parse =
31
28
]
32
29
33
30
let test_interpret =
34
- let ty = Alcotest. result Testable. label Testable. msg in
31
+ let ty = Testable. errormsg Testable. label in
35
32
let make_test ~label ~value ~expected =
36
33
let test_name = Printf. sprintf " interpret: %S" label in
37
34
let test_fun () =
You can’t perform that action at this time.
0 commit comments