package b0
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
    
    
  doc/b0.std/B0_testing/Test/Diff/index.html
Module Test.DiffSource
Reporting value differences.
In general the generic differs will do but depending on your application domain you may want to customize how differences on value mismatch are reported. For that devise a differ with make and pass it to assertion functions.
Differs
The type for differs of value of type 'a.
make render reports diff by calling render. When called fnd and exp are expected to be different as per tester equality, no need to retest them.
pp ?diff t ~fnd ~exp formats with diff the differences between fnd and exp which are expected to be different as per t's equality. diff defaults to default.
Predefined
dumb is a dumb differ, it pretty prints the values according to tester and separates them by a <>.
of_cmd cmd is a differ from command cmd which must expect to receive exp and fnd as text files as the two first positional arguments in that order. The text files have rendering of the values with the test files to which a final newline is appended.
git diffs by pretty printing the value according to the value tester and diffing the results by shelling out to git diff. For now this is the default differ.
git_diff ~fnd ~exp provides access to the underlyling primitive used by git to diff textual content fnd and exp. Note that fnd and exp are appended a newline before diffing them.