package testing

import "github.com/IBM/fp-go/monoid/testing"

Index

Functions

func AssertLaws

func AssertLaws[A any](t *testing.T, m M.Monoid[A]) func(data []A) bool

AssertLaws asserts the monoid laws for a dataset

Source Files

rules.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
4 months ago

Tools for package owners.