package mdx

  1. Overview
  2. Docs

Module Mdx.OutputSource

Test outputs.

Sourcetype t = [
  1. | `Output of string
  2. | `Ellipsis
]

The type for test outputs. Ellipisis (...) allow to skip zero, one or many lines while comparing the outputs with equal.

Sourceval equal : t list -> t list -> bool

equal x y is true iff x and y are equivalent, modulo ellipsis.

Sourceval merge : [ `Output of string ] list -> t list -> t list

merge output test merges any `Ellipsis items from test into output.

Sourceval pp : ?pad:int -> t Fmt.t

pp is the pretty-printer for test outputs. pad is the size of the optional whitespace left-padding (by default it is 0).

Sourceval dump : t Fmt.t

dump is the printer for dumping test outputs. Useful for debugging.

OCaml

Innovation. Community. Security.