From 21e376d12e6289ff1d18d646fd27cfbdd28a655b Mon Sep 17 00:00:00 2001 From: Trevor Foster Date: Sat, 28 Mar 2020 22:47:35 -0400 Subject: [PATCH] add a few more cases --- viper_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/viper_test.go b/viper_test.go index f0de6be..9682dcb 100644 --- a/viper_test.go +++ b/viper_test.go @@ -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