Skip to content

Commit b533d8b

Browse files
committed
Add test that replacing an entire Range does exactly that
1 parent 9a0e729 commit b533d8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_buffer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,10 @@ def test_get_exceptions():
172172
@with_setup(setup=cleanup)
173173
def test_contains():
174174
ok(vim.current.buffer in vim.buffers)
175+
176+
@with_setup(setup=cleanup)
177+
def test_set_items_for_range():
178+
vim.current.buffer[:] = ['a', 'b', 'c', 'd', 'e']
179+
r = vim.current.buffer.range(1, 3)
180+
r[1:3] = ['foo']*3
181+
eq(vim.current.buffer[:], ['a', 'foo', 'foo', 'foo', 'd', 'e'])

0 commit comments

Comments
 (0)