Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions src/alcotest-engine/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ let char =
let pp_char ppf x = Fmt.pf ppf "%C" x in
testable pp_char ( = )

let uchar =
let pp_uchar ppf x = Fmt.Dump.uchar ppf x in
testable pp_uchar ( = )

let string =
let pp_string ppf x = Fmt.pf ppf "%S" x in
testable pp_string ( = )
Expand Down
3 changes: 3 additions & 0 deletions src/alcotest-engine/test.mli
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ val float : float -> float testable
val char : char testable
(** [char] tests characters. *)

val uchar : Uchar.t testable
(** [uchar] tests Unicode characters. *)

val string : string testable
(** [string] tests OCaml strings. *)

Expand Down
Loading