Support pointer values

This commit is contained in:
Nise Void 2020-04-24 13:01:25 +02:00
parent cb4720cd31
commit 43deea02af
Signed by: NiseVoid
GPG key ID: FBA14AC83EA602F3
3 changed files with 50 additions and 3 deletions

View file

@ -131,6 +131,7 @@ func TestLenMinMax(t *testing.T) {
}
func check(t *testing.T, c interface{}, errCount int) {
t.Helper()
errs := Validate(c)
if len(errs) != errCount {
t.Errorf(`Case %T(%v) should get %d errors, but got %v`, c, c, errCount, errs)