X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e5f8251704c22b143b79474905c6c4b7e10ddb47..ed91dd4de63215aa3dde1f6da8659fb35ff191d8:/tests/empty_lines.py diff --git a/tests/empty_lines.py b/tests/empty_lines.py index ec04337..4c03e43 100644 --- a/tests/empty_lines.py +++ b/tests/empty_lines.py @@ -1,3 +1,7 @@ +"""Docstring.""" + + +# leading comment def f(): NO = '' SPACE = ' ' @@ -44,9 +48,11 @@ def f(): syms.dictsetmaker, }: return NO + ############################################################################### # SECTION BECAUSE SECTIONS ############################################################################### + def g(): NO = '' SPACE = ' ' @@ -64,7 +70,7 @@ def g(): return DOUBLESPACE # Another comment because more comments - assert p is not None, f"INTERNAL ERROR: hand-made leaf without parent: {leaf!r}" + assert p is not None, f'INTERNAL ERROR: hand-made leaf without parent: {leaf!r}' prev = leaf.prev_sibling if not prev: @@ -89,10 +95,14 @@ def g(): # output +"""Docstring.""" + + +# leading comment def f(): - NO = '' - SPACE = ' ' - DOUBLESPACE = ' ' + NO = "" + SPACE = " " + DOUBLESPACE = " " t = leaf.type p = leaf.parent # trailing comment @@ -139,9 +149,9 @@ def f(): def g(): - NO = '' - SPACE = ' ' - DOUBLESPACE = ' ' + NO = "" + SPACE = " " + DOUBLESPACE = " " t = leaf.type p = leaf.parent