1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-09 12:10:19 +00:00

add funcmap

This commit is contained in:
miraclesu
2013-07-24 01:20:24 +08:00
parent aba1728bc3
commit 4c6163baa0
5 changed files with 128 additions and 33 deletions

View File

@ -57,16 +57,16 @@ func TestMax(t *testing.T) {
}
}
func TestRange(t *testing.T) {
valid := Validation{}
// func TestRange(t *testing.T) {
// valid := Validation{}
if valid.Range(-1, 0, 1, "range0_1").Ok {
t.Error("-1 is bettween 0 and 1 should be false")
}
if !valid.Range(1, 0, 1, "range0_1").Ok {
t.Error("1 is bettween 0 and 1 should be true")
}
}
// if valid.Range(-1, 0, 1, "range0_1").Ok {
// t.Error("-1 is bettween 0 and 1 should be false")
// }
// if !valid.Range(1, 0, 1, "range0_1").Ok {
// t.Error("1 is bettween 0 and 1 should be true")
// }
// }
func TestMinSize(t *testing.T) {
valid := Validation{}