mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
tests: fix 005_bufleave_delete_buffer_spec.lua
- After _spec suffix was added so busted could find the test, it failed.
- The original legacy test wrote to a "test.out", but the new test uses
register @A.
- Original test did not contain 1d and new test shouldn't either.
ref c152cdd0f3
This commit is contained in:
@@ -38,18 +38,15 @@ describe('test5', function()
|
|||||||
-- Write current file contents.
|
-- Write current file contents.
|
||||||
execute('?start?,$yank A')
|
execute('?start?,$yank A')
|
||||||
|
|
||||||
-- Delete alternate buffer.
|
|
||||||
execute('bwipe test.out')
|
|
||||||
execute('au bufleave test5.in bwipe')
|
|
||||||
|
|
||||||
-- Delete current buffer, get an empty one.
|
-- Delete current buffer, get an empty one.
|
||||||
execute('bwipe!')
|
execute('bwipe!')
|
||||||
|
-- Append an extra line to the output register.
|
||||||
feed('ithis is another test line<esc>:yank A<cr>')
|
feed('ithis is another test line<esc>:yank A<cr>')
|
||||||
|
|
||||||
-- Output results
|
-- Output results
|
||||||
execute('%d')
|
execute('%d')
|
||||||
execute('0put a')
|
execute('0put a')
|
||||||
execute('1d | $d')
|
execute('$d')
|
||||||
|
|
||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([[
|
expect([[
|
||||||
|
Reference in New Issue
Block a user