Skip to content

Commit cbe375a

Browse files
CaldrinLeont
authored andcommitted
for space at the end of YAMLish entries
1 parent 6279c73 commit cbe375a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

t/yamlish.t

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,25 @@ BEGIN {
415415
],
416416
name => 'Regression: only_spaces'
417417
},
418+
{ out => ['first','second'],
419+
in => [
420+
'--- ',
421+
'- first ',
422+
'- second ',
423+
'...'
424+
],
425+
name => "Space after header for array",
426+
},
427+
{ out => {'key' => [{'value' => {'key2' => 'value2'}}]},
428+
in => [
429+
'--- ',
430+
'key: ',
431+
'- value: ',
432+
' key2: value2 ',
433+
'... '
434+
],
435+
name => "Space after header for hash",
436+
},
418437
{ out => [
419438
undef,
420439
{ 'foo' => 'bar',

0 commit comments

Comments
 (0)