1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-25 13:10:50 +00:00

validation: amend email test case

This commit is contained in:
miraclesu 2017-03-12 20:27:09 +08:00
parent b34853f8cc
commit c9cc642d37

View File

@ -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")
}
}