|
@@ -773,11 +773,20 @@ var unmarshalTests = []struct {
|
|
|
{
|
|
{
|
|
|
"true\n#" + strings.Repeat(" ", 512*3),
|
|
"true\n#" + strings.Repeat(" ", 512*3),
|
|
|
"true",
|
|
"true",
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ }, {
|
|
|
"true #" + strings.Repeat(" ", 512*3),
|
|
"true #" + strings.Repeat(" ", 512*3),
|
|
|
"true",
|
|
"true",
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ // CRLF
|
|
|
|
|
+ {
|
|
|
|
|
+ "a: b\r\nc:\r\n- d\r\n- e\r\n",
|
|
|
|
|
+ map[string]interface{}{
|
|
|
|
|
+ "a": "b",
|
|
|
|
|
+ "c": []interface{}{"d", "e"},
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type M map[string]interface{}
|
|
type M map[string]interface{}
|