We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb5c26 commit c9b6a50Copy full SHA for c9b6a50
test/test_vim.py
@@ -74,6 +74,15 @@ def test_current_line(vim):
74
assert vim.current.line == 'abc'
75
76
77
+def test_current_line_delete(vim):
78
+ vim.current.buffer[:] = ['one', 'two']
79
+ assert len(vim.current.buffer[:]) == 2
80
+ del vim.current.line
81
+ assert len(vim.current.buffer[:]) == 1 and vim.current.buffer[0] == 'two'
82
83
+ assert len(vim.current.buffer[:]) == 1 and not vim.current.buffer[0]
84
+
85
86
def test_vars(vim):
87
vim.vars['python'] = [1, 2, {'3': 1}]
88
assert vim.vars['python'], [1, 2 == {'3': 1}]
0 commit comments