package testing
import "github.com/IBM/fp-go/statereaderioeither/testing"
Index ¶
Functions ¶
func AssertLaws ¶
func AssertLaws[S, E, R, A, B, C any](t *testing.T, eqs EQ.Eq[S], eqe EQ.Eq[E], eqa EQ.Eq[A], eqb EQ.Eq[B], eqc EQ.Eq[C], ab func(A) B, bc func(B) C, s S, r R, ) func(a A) bool
AssertLaws asserts the apply monad laws for the `Either` monad
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 months ago –
Tools for package owners.