1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-07 02:10:17 +00:00
This commit is contained in:
astaxie
2016-09-12 21:13:21 +08:00
parent dd0f05b1f1
commit 5b21c7cd71
4 changed files with 34 additions and 11 deletions

View File

@ -577,6 +577,10 @@ func TestCRUD(t *testing.T) {
err = dORM.Read(&ub)
throwFail(t, err)
throwFail(t, AssertIs(ub.Name, "name"))
num, err = dORM.Delete(&ub, "name")
throwFail(t, err)
throwFail(t, AssertIs(num, 1))
}
func TestInsertTestData(t *testing.T) {