mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 03:40:55 +00:00
validation: amend email test case
This commit is contained in:
parent
b34853f8cc
commit
c9cc642d37
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user