functests: Test dumping and loading change list

This commit is contained in:
ZyX 2015-07-05 02:38:41 +03:00
parent 941ec54aa1
commit cf004c0d41

View File

@ -148,4 +148,18 @@ describe('ShaDa support code', function()
eq(testfilename_2, nvim_eval('bufname("%")'))
eq(2, nvim_current_line())
end)
it('is able to dump and restore change list', function()
nvim_command('edit ' .. testfilename)
nvim_feed('Gra')
nvim_feed('ggrb')
nvim_command('qall!')
reset()
nvim_command('edit ' .. testfilename)
-- nvim_command('rviminfo')
nvim_feed('Gg;')
eq(1, nvim_current_line())
nvim_feed('g;')
eq(2, nvim_current_line())
end)
end)