add example failing sort_simple_yaml test with comment with leading space

This commit is contained in:
Ryan Downing 2023-10-31 00:48:43 -04:00
parent 6306a48f7d
commit cc94673a3f

View file

@ -36,6 +36,32 @@ TEST_SORTS = [
['# i am', '# a header'],
RETVAL_GOOD,
),
(
[
'# top of file',
'# header',
'',
'b: 42',
'',
' # a comment with leading space',
'e: 1',
'',
'c: true',
],
[
'# top of file',
'# header',
'',
'b: 42',
'',
'c: true',
'',
' # a comment with leading space',
'e: 1',
],
RETVAL_BAD,
),
]