This commit is contained in:
Thomas Pelletier
2021-03-29 20:46:09 -04:00
parent c3fc668f27
commit 78389c641a
+17
View File
@@ -193,6 +193,23 @@ func TestUnmarshal(t *testing.T) {
}
},
},
{
desc: "issue 475 - space between dots in key",
input: `fruit. color = "yellow"
fruit . flavor = "banana"`,
gen: func() test {
m := map[string]interface{}{}
return test{
target: &m,
expected: &map[string]interface{}{
"fruit": map[string]interface{}{
"color": "yellow",
"flavor": "banana",
},
},
}
},
},
{
desc: "multiline basic string",
input: `A = """\