mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
add example failing sort_simple_yaml test with comment with leading space
This commit is contained in:
parent
6306a48f7d
commit
cc94673a3f
1 changed files with 26 additions and 0 deletions
|
|
@ -36,6 +36,32 @@ TEST_SORTS = [
|
||||||
['# i am', '# a header'],
|
['# i am', '# a header'],
|
||||||
RETVAL_GOOD,
|
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,
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue