add a few more cases

This commit is contained in:
Trevor Foster 2020-03-28 22:47:35 -04:00
parent 61c17d0781
commit 21e376d12e

View file

@ -978,6 +978,8 @@ func TestBindPFlagStringToString(t *testing.T) {
{nil, ""},
{map[string]string{"yo": "hi"}, "yo=hi"},
{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