mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
doc; test
This commit is contained in:
parent
437852d18e
commit
80f36d20eb
1 changed files with 6 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ module type S = sig
|
||||||
|
|
||||||
val pp : Buffer.t -> t -> unit
|
val pp : Buffer.t -> t -> unit
|
||||||
val print : Format.formatter -> t -> unit
|
val print : Format.formatter -> t -> unit
|
||||||
|
(** Print the string within quotes *)
|
||||||
end
|
end
|
||||||
|
|
||||||
(** {2 Strings} *)
|
(** {2 Strings} *)
|
||||||
|
|
@ -380,4 +381,9 @@ module Sub : sig
|
||||||
Sub.make "abcde" 1 3 |> Sub.copy = "bcd"
|
Sub.make "abcde" 1 3 |> Sub.copy = "bcd"
|
||||||
Sub.full "abcde" |> Sub.copy = "abcde"
|
Sub.full "abcde" |> Sub.copy = "abcde"
|
||||||
*)
|
*)
|
||||||
|
|
||||||
|
(*$T
|
||||||
|
let sub = Sub.make " abc " 1 ~len:3 in \
|
||||||
|
"\"abc\"" = (CCFormat.to_string Sub.print sub)
|
||||||
|
*)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue