diff --git a/decoder_test.go b/decoder_test.go index de90ec0..ebf7c90 100644 --- a/decoder_test.go +++ b/decoder_test.go @@ -59,9 +59,24 @@ func TestDecode_interface(t *testing.T) { }, { "multiline_bad.hcl", + true, + nil, + }, + { + "multiline_no_marker.hcl", + true, + nil, + }, + { + "multiline.hcl", false, map[string]interface{}{"foo": "bar\nbaz\n"}, }, + { + "multiline_no_eof.hcl", + false, + map[string]interface{}{"foo": "bar\nbaz\n", "key": "value"}, + }, { "multiline.json", false, diff --git a/test-fixtures/multiline.hcl b/test-fixtures/multiline.hcl new file mode 100644 index 0000000..f883bd7 --- /dev/null +++ b/test-fixtures/multiline.hcl @@ -0,0 +1,4 @@ +foo = <