package testutil import "testing" func Equal[V comparable](t *testing.T, got, expected V) { t.Helper() if expected != got { t.Errorf("assert equal failed:\ngot: %v \nexpected: %v", got, expected) } }