Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tests #176

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/core/QCheck2.mli
Original file line number Diff line number Diff line change
Expand Up @@ -1647,8 +1647,8 @@ module Test : sig
val check_result : 'a cell -> 'a TestResult.t -> unit
(** [check_result cell res] checks that [res] is [Ok _], and returns unit.
Otherwise, it raises some exception.
@raise Test_error if [res = Error _]
@raise Test_error if [res = Failed _] *)
@raise Test_fail if [res = Failed _]
@raise Test_error if [res = Error _] *)

type res =
| Success
Expand Down Expand Up @@ -1695,14 +1695,14 @@ module Test : sig
?long:bool -> ?call:'a callback -> ?step:'a step ->
?rand:Random.State.t -> 'a cell -> unit
(** Same as {!check_cell} but calls {!check_result} on the result.
@raise Test_error if [res = Error _]
@raise Test_error if [res = Failed _] *)
@raise Test_fail if [res = Failed _]
@raise Test_error if [res = Error _] *)

val check_exn : ?long:bool -> ?rand:Random.State.t -> t -> unit
(** Checks the property against some test cases, and calls {!check_result},
which might raise an exception in case of failure.
@raise Test_error if [res = Error _]
@raise Test_error if [res = Failed _] *)
@raise Test_fail if [res = Failed _]
@raise Test_error if [res = Error _] *)
end

(** {2 Sub-tests} *)
Expand Down
Loading