1
0
镜像自地址 https://github.com/astaxie/beego.git 已同步 2025-07-17 18:52:16 +00:00

Add two test cases for ParseForm

这个提交包含在:
miraclesu
2013-07-25 22:50:29 +08:00
父节点 b8e06f6365
当前提交 b99a09d73b

查看文件

@@ -27,6 +27,12 @@ func TestParseForm(t *testing.T) {
if err := ParseForm(form, &u); err != nil {
t.Fatal(err)
}
if u.Id != 0 {
t.Error("Id should not be changed")
}
if len(u.tag) != 0 {
t.Error("tag should not be changed")
}
if u.Name.(string) != "test" {
t.Error("should be equal")
}