Expand description
Helper test utils to test lattice implementation correctness.
Functions§
- Returns an iterator of
N
-length arrays containing all permutations ofitems
(with replacement). - Helper which calls many other
check_*
functions in this module. See source code for which functions are called. - Check that the atomized lattice points re-merge to form the same original lattice point, for each item in
items
. - Checks that the
LatticeBimorphism
is valid, i.e. that merge distributes over both arguments of it. - Asserts that
IsBot
is true forDefault::default()
. - Checks that the item which is bot is less than (or equal to) all other items.
- Checks that the item which is top is greater than (or equal to) all other items.
- Checks that the
LatticeMorphism
is valid, i.e. that merge distributes over it. - Check that the lattice’s
PartialOrd
implementation agrees with theNaiveLatticeOrd
partial order derived fromMerge
. - Check lattice associativity, commutativity, and idempotence.
- Checks
PartialOrd
andPartialEq
’s reflexivity, symmetry, transitivity, and duality.