more encoded test case
@@ -66,17 +66,17 @@ func Test_hostnameFromContext(t *testing.T) {
}
func Test_str2Map(t *testing.T) {
- s := "foo:bar,bang:baz Hello:World, extra space:just because sillychars:butwhy%3F encodedspace:yup+"
+ s := "foo:bar,bang:baz Hello:World, extra space:justBecause sillychars:butwhy%3F encodedspace:yup+, colonInside:why%3Anot"
m := str2map(s)
e := map[string]string{
"foo": "bar",
"bang": "baz",
"Hello": "World",
"extra": "",
- "because": "",
- "space": "just",
+ "space": "justBecause",
"sillychars": "butwhy?",
"encodedspace": "yup ",
+ "colonInside": "why:not",
}
assert.Equal(t, e, m)
}
