Skip to content

Commit d7f7722

Browse files
committed
fix: add another test case
1 parent 144a32f commit d7f7722

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

validator_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8737,6 +8737,10 @@ func TestEmail(t *testing.T) {
87378737
NotEqual(t, errs, nil)
87388738
AssertError(t, errs, "", "", "", "", "email")
87398739

8740+
s = "Foo Bar <[email protected]>"
8741+
errs = validate.Var(s, "email")
8742+
NotEqual(t, errs, nil)
8743+
87408744
s = ""
87418745
errs = validate.Var(s, "email")
87428746
NotEqual(t, errs, nil)

0 commit comments

Comments
 (0)