Support pointer values
This commit is contained in:
parent
cb4720cd31
commit
43deea02af
3 changed files with 50 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue