@@ -1701,8 +1701,8 @@ module Test : sig
1701
1701
val check_result : 'a cell -> 'a TestResult .t -> unit
1702
1702
(* * [check_result cell res] checks that [res] is [Ok _], and returns unit.
1703
1703
Otherwise, it raises some exception.
1704
- @raise Test_error if [res = Error _]
1705
- @raise Test_error if [res = Failed _] *)
1704
+ @raise Test_fail if [res = Failed _]
1705
+ @raise Test_error if [res = Error _] *)
1706
1706
1707
1707
type res =
1708
1708
| Success
@@ -1750,14 +1750,14 @@ module Test : sig
1750
1750
?step : 'a step -> ?handler : 'a handler ->
1751
1751
?rand : Random.State .t -> 'a cell -> unit
1752
1752
(* * Same as {!check_cell} but calls {!check_result} on the result.
1753
- @raise Test_error if [res = Error _]
1754
- @raise Test_error if [res = Failed _] *)
1753
+ @raise Test_fail if [res = Failed _]
1754
+ @raise Test_error if [res = Error _] *)
1755
1755
1756
1756
val check_exn : ?long : bool -> ?rand : Random.State .t -> t -> unit
1757
1757
(* * Checks the property against some test cases, and calls {!check_result},
1758
1758
which might raise an exception in case of failure.
1759
- @raise Test_error if [res = Error _]
1760
- @raise Test_error if [res = Failed _] *)
1759
+ @raise Test_fail if [res = Failed _]
1760
+ @raise Test_error if [res = Error _] *)
1761
1761
end
1762
1762
1763
1763
(* * {2 Sub-tests} *)
0 commit comments