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

Accept parameters more types

This commit is contained in:
miraclesu
2013-07-28 16:59:35 +08:00
parent ae7e31717a
commit dcdfaf36f1
3 changed files with 32 additions and 30 deletions

View File

@ -61,10 +61,10 @@ 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")
t.Error("-1 is between 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")
t.Error("1 is between 0 and 1 should be true")
}
}