package speed

  1. Overview
  2. Docs

Module Speed_assertionsSource

Sourcemodule AssertionResult : sig ... end
Sourcetype print = Format.formatter -> unit
Sourceexception AssertionError
Sourceexception FormattedAssertionError of Format.formatter -> unit
Sourceval match_success : 'a -> ('a, 'b) result
Sourceval match_failure : ?pp:print -> 'a -> ('b, [> `AssertionError of 'a | `AssertionErrorWithFormat of print ]) result
Sourceval equality_failure : 'a -> 'a -> (Format.formatter -> 'a -> unit) -> ('b, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval be_true : bool -> (bool, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval be_ok : ('a, 'b) result -> ('a, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval be_error : ('a, 'b) result -> ('b, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval be_false : bool -> (bool, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval equal_int : int -> int -> (int, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval equal_string : String.t -> String.t -> (String.t, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval contain : Base.String.t -> Base.String.t -> (Base.String.t, [> `AssertionError of unit | `AssertionErrorWithFormat of print ]) result
Sourceval run_matcher : ('a -> 'b) -> 'a -> 'b
Sourceval expect : ?name:string -> 'a -> ('a -> ('b, [> `AssertionErrorWithFormat of Format.formatter -> unit ]) result) -> unit
Sourceval (>=>) : ('a -> ('b, 'c) Base.Result.t) -> ('b -> ('d, 'c) Base.Result.t) -> 'a -> ('d, 'c) Base.Result.t
Sourceval should : ?name:string -> ('a -> ('b, [> `AssertionErrorWithFormat of Format.formatter -> unit ]) result) -> 'a -> unit
OCaml

Innovation. Community. Security.