add Desc & Asc test

This commit is contained in:
Lunny Xiao 2013-09-02 10:20:29 +08:00
parent 4ea5fd2791
commit 5d523cc3b2
1 changed files with 8 additions and 0 deletions

View File

@ -292,6 +292,14 @@ func order(engine *Engine, t *testing.T) {
panic(err)
}
fmt.Println(users)
users2 := make([]Userinfo, 0)
err = engine.Asc("id", "username").Desc("height").Find(&users2)
if err != nil {
t.Error(err)
panic(err)
}
fmt.Println(users2)
}
func join(engine *Engine, t *testing.T) {