Skip to content

Commit

Permalink
Fix err message
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara402 committed Nov 21, 2016
1 parent 803ff86 commit b060ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions required_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ func TestValidateOfRequiredValidator(t *testing.T) {
definition := c.Input.Definition
va, err := validator.NewRequiredValidator(definition)
if err != nil {
t.Errorf("Fail to create new required validator: %s", err)
t.Errorf("test with %s: fail to create new required validator: %s", c.Message, err)
continue
}

err = va.Validate(c.Input.Types)
if !reflect.DeepEqual(err, c.Expected) {
t.Errorf("Test with %s: expected %+v, but actual %+v", c.Message, c.Expected, err)
t.Errorf("test with %s: expected %+v, but actual %+v", c.Message, c.Expected, err)
}
}
}

0 comments on commit b060ac6

Please sign in to comment.