Highlight trailing whitespace

This commit is contained in:
Anthony Sottile
2020-03-13 20:49:59 -07:00
parent b52fb15368
commit 1d06a77d44
12 changed files with 300 additions and 35 deletions

View File

@@ -7,23 +7,8 @@ from babi.file import get_lines
def test_position_repr():
ret = repr(File('f.txt'))
assert ret == (
'File(\n'
" filename='f.txt',\n"
' modified=False,\n'
' lines=[],\n'
" nl='\\n',\n"
' file_y=0,\n'
' y=0,\n'
' x=0,\n'
' x_hint=0,\n'
' sha256=None,\n'
' undo_stack=[],\n'
' redo_stack=[],\n'
' select_start=None,\n'
')'
)
ret = repr(File('f.txt', ()))
assert ret == "<File 'f.txt'>"
@pytest.mark.parametrize(