diff --git a/tests/sort_simple_yaml_test.py b/tests/sort_simple_yaml_test.py index 6cbda857..d83774b3 100644 --- a/tests/sort_simple_yaml_test.py +++ b/tests/sort_simple_yaml_test.py @@ -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, + ), ]