mirror of
https://github.com/astaxie/beego.git
synced 2025-07-09 11:50:18 +00:00
add validation README
This commit is contained in:
@ -31,7 +31,7 @@ func TestRequired(t *testing.T) {
|
||||
t.Error("empty slice should be false")
|
||||
}
|
||||
if !valid.Required([]interface{}{"ok"}, "slice").Ok {
|
||||
t.Error("slice should be equal true")
|
||||
t.Error("slice should be true")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user