effect-ts-laws
Version:
effect-ts law testing using fast-check.
16 lines • 556 B
JavaScript
import { predicate } from '#arbitrary';
import { monoRecord } from '#util';
/**
* Build the options for monomorphic typeclass law tests on the underlying type
* `A`.
* @category monomorphic
*/
export const unfoldMonomorphicGiven = ({ a, equalsA, getEquivalence, getArbitrary, Monoid, }) => ({
...monoRecord(a)('a', 'b', 'c'),
...monoRecord(equalsA)('equalsA', 'equalsB', 'equalsC'),
...monoRecord(predicate())('predicateA', 'predicateB', 'predicateC'),
getArbitrary,
getEquivalence,
Monoid,
});
//# sourceMappingURL=given.js.map