1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-07 02:10:17 +00:00

update config to change section . to ::

This commit is contained in:
astaxie
2013-12-09 23:54:35 +08:00
parent 690ecb8168
commit b97d9896a4
2 changed files with 5 additions and 5 deletions

View File

@ -69,13 +69,13 @@ func TestIni(t *testing.T) {
if iniconf.String("name") != "astaxie" {
t.Fatal("get name error")
}
if iniconf.String("demo.key1") != "asta" {
if iniconf.String("demo::key1") != "asta" {
t.Fatal("get demo.key1 error")
}
if iniconf.String("demo.key2") != "xie" {
if iniconf.String("demo::key2") != "xie" {
t.Fatal("get demo.key2 error")
}
if v, err := iniconf.Bool("demo.caseinsensitive"); err != nil || v != true {
if v, err := iniconf.Bool("demo::caseinsensitive"); err != nil || v != true {
t.Fatal("get demo.caseinsensitive error")
}
}