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

pull/4142/head
Elmar Ritsch 7 years ago
parent 7308e766e2
commit a7362d76bc

@ -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,

Loading…
Cancel
Save