A unit testing library for Prolog, providing an expressive xUnit-like API for PlUnit, and better feedback to the user on test fail.
Uses ==/2 to check for term identity, which means it compares the terms A and B structurally, including the functor and arity (number of arguments) of the terms and the equality of each corresponding argument. Thus, succeeds if A and B are identical terms, without attempting to unify variables or perform any arithmetic evaluations
This is analogous to isNull()
or isNone()
in other xUnit implementations
This checks for list/set membership, and also whether Var is a valid dictionary key in Collection
This checks for list/set membership, and also whether Var is a valid dictionary key in Collection
Supported types are: number, integer, float, atom, compound, list, dict