package windtrap

  1. Overview
  2. Docs
One library for all your OCaml tests

Install

dune-project
 Dependency

Authors

Maintainers

Sources

windtrap-0.1.0.tbz
sha256=2241b294b24ed5d56ea8b834d296e6fabc5dbdd924a89f51c14b00da66c50a25
sha512=c6cf83028bb09d0f2afeb38fce6825620873a6bbeff4b5b77e928bc2fc69262d49fe341961cba2b451c9dc9bd0df414f06bb73020c7131b125c6abd85c6bc5dd

doc/windtrap.myers/Myers/index.html

Module MyersSource

Minimal polymorphic Myers diff implementation.

Sourcemodule type Equal = sig ... end
Sourcemodule Line : sig ... end
Sourceval compute : (module Equal with type t = 'a) -> 'a list -> 'a list -> 'a Line.t list

compute (module E) before after returns a shortest edit script from before to after.

Sourceval diff : ?context:int -> ?expected_label:string -> ?actual_label:string -> string -> string -> string

diff expected actual renders a unified diff for text inputs.

Sourceval print_diff : ?context:int -> ?expected_label:string -> ?actual_label:string -> string -> string -> unit

print_diff expected actual writes diff to stdout.