diff --git a/api_test.go b/api_test.go index 0e01302..814524c 100644 --- a/api_test.go +++ b/api_test.go @@ -191,12 +191,13 @@ func TestValidateName(t *testing.T) { assert.EqualValues(t, "myValidation", vv.Name) assert.EqualValues(t, "myMessage", vv.message) - // unchanged + // forced vv = v.ValidateName("myNewName") - assert.EqualValues(t, "myValidation", vv.Name) - assert.EqualValues(t, "myMessage", vv.message) + assert.EqualValues(t, "myNewName.myValidation", vv.Name) + assert.EqualValues(t, "myNewName.myMessage", vv.message) v.Name = "" + v.message = "myMessage" // unchanged vv = v.ValidateName("")