mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 19:20:54 +00:00
fixed test error
This commit is contained in:
parent
d528fafd43
commit
3f016840db
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user