Commit c9cc642d authored by miraclesu's avatar miraclesu

validation: amend email test case

parent b34853f8
......@@ -217,7 +217,7 @@ func TestEmail(t *testing.T) {
if valid.Email("@suchuangji@gmail.com", "email").Ok {
t.Error("\"@suchuangji@gmail.com\" is a valid email address should be false")
}
if valid.Email("@suchuangji@gmail.com", "email").Ok {
if valid.Email("suchuangji@gmail.com ok", "email").Ok {
t.Error("\"suchuangji@gmail.com ok\" is a valid email address should be false")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment