mirror of
https://github.com/spf13/viper
synced 2025-05-11 22:57:21 +00:00
add a few more cases
This commit is contained in:
parent
61c17d0781
commit
21e376d12e
1 changed files with 2 additions and 0 deletions
|
@ -978,6 +978,8 @@ func TestBindPFlagStringToString(t *testing.T) {
|
||||||
{nil, ""},
|
{nil, ""},
|
||||||
{map[string]string{"yo": "hi"}, "yo=hi"},
|
{map[string]string{"yo": "hi"}, "yo=hi"},
|
||||||
{map[string]string{"yo": "hi", "oh": "hi=there"}, "yo=hi,oh=hi=there"},
|
{map[string]string{"yo": "hi", "oh": "hi=there"}, "yo=hi,oh=hi=there"},
|
||||||
|
{map[string]string{"yo": ""}, "yo="},
|
||||||
|
{map[string]string{"yo": "", "oh": "hi=there"}, "yo=,oh=hi=there"},
|
||||||
}
|
}
|
||||||
|
|
||||||
v := New() // create independent Viper object
|
v := New() // create independent Viper object
|
||||||
|
|
Loading…
Add table
Reference in a new issue