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

Fixed #1735 Return empty []string

Need return empty []string  if config value is empty.

split `“”` ==> []string{}, Not []string{“”}
This commit is contained in:
ysqi
2016-03-02 22:44:20 +08:00
parent 70e63570f5
commit 8ff74e71cb
6 changed files with 23 additions and 3 deletions

View File

@ -79,4 +79,8 @@ func TestYaml(t *testing.T) {
if yamlconf.String("name") != "astaxie" {
t.Fatal("get name error")
}
if len(yamlconf.Strings("emptystrings")) != 0 {
t.Fatal("get emtpy strings error")
}
}