fix multiline scalar value issue

This commit is contained in:
Natasha Sarkar
2021-07-14 16:43:37 -07:00
committed by Katrina Verey
parent 9538ae1258
commit f082ac02cf

View File

@@ -46,6 +46,9 @@ var unmarshalTests = []struct {
map[string]string{"v": "hi"},
}, {
"v: hi", map[string]interface{}{"v": "hi"},
}, {
"v: 'hi\nthis is a\nmultiline string\n'",
map[string]interface {}{"v":"hi\nthis is a\nmultiline string\n"},
}, {
"v: true",
map[string]string{"v": "true"},