Add test to make sure --set flag interprets `null` as `nil`

This commit is contained in:
Elmar Ritsch 2018-05-29 22:06:00 +02:00
parent 7308e766e2
commit a7362d76bc
1 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,11 @@ func TestParseSet(t *testing.T) {
str: "boolean=true",
expect: map[string]interface{}{"boolean": true},
},
{
str: "is_null=null",
expect: map[string]interface{}{"is_null": nil},
err: false,
},
{
str: "name1,name2=",
err: true,