1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 21:51:28 +00:00

fixed test error

This commit is contained in:
ysqi 2016-06-04 10:41:55 +08:00
parent d528fafd43
commit 3f016840db

View File

@ -2122,13 +2122,13 @@ func TestSnake(t *testing.T) {
cases := map[string]string{ cases := map[string]string{
"i": "i", "i": "i",
"I": "i", "I": "i",
"iD": "i_d", //01 "iD": "i_d",
"ID": "id", //11 pre+curent=2 "ID": "id",
"NO": "no", //11 "NO": "no",
"NOO": "noo", //111 10 "NOO": "noo",
"NOOooOOoo": "noo_oo_oo_oo", //111_00_11_00 "NOOooOOoo": "noo_oo_oo_oo",
"OrderNO": "order_no", //10000_11 "OrderNO": "order_no",
"tagName": "tag_name", //000_1000 "tagName": "tag_name",
"tag_Name": "tag_name", "tag_Name": "tag_name",
"tag_name": "tag_name", "tag_name": "tag_name",
"_tag_name": "_tag_name", "_tag_name": "_tag_name",
@ -2149,6 +2149,7 @@ func TestIgnoreCaseTag(t *testing.T) {
Name02 string `orm:"COLUMN(Name)"` Name02 string `orm:"COLUMN(Name)"`
Name03 string `orm:"Column(name)"` Name03 string `orm:"Column(name)"`
} }
modelCache.clean()
RegisterModel(&testTagModel{}) RegisterModel(&testTagModel{})
info, ok := modelCache.get("test_tag_model") info, ok := modelCache.get("test_tag_model")
throwFail(t, AssertIs(ok, true)) throwFail(t, AssertIs(ok, true))