Skip to content

Commit

Permalink
add example failing sort_simple_yaml test with comment with leading s…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
r-downing committed Oct 31, 2023
1 parent 6306a48 commit cc94673
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/sort_simple_yaml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,32 @@
['# 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,
),
]


Expand Down

0 comments on commit cc94673

Please sign in to comment.