Commit 7308e766 authored by Elmar Ritsch's avatar Elmar Ritsch

Add test to make sure --set-string flag takes `null` as string

parent 272d9bc6
...@@ -80,6 +80,11 @@ func TestParseSet(t *testing.T) { ...@@ -80,6 +80,11 @@ func TestParseSet(t *testing.T) {
expect: map[string]interface{}{"boolean": "true"}, expect: map[string]interface{}{"boolean": "true"},
err: false, err: false,
}, },
{
str: "is_null=null",
expect: map[string]interface{}{"is_null": "null"},
err: false,
},
} }
tests := []struct { tests := []struct {
str string str string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment