aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/compatibility_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-08-15 17:20:07 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:45 +0300
commit804e0740964bf84891d798d36d82a5c7ffa462f2 (patch)
treea54514a6e40ce1119bb99ad9c26ade458a13f73d /test/functional/shada/compatibility_spec.lua
parent0d15b35d49fdc9872fb28b31c9ef521ef8ab044d (diff)
downloadrneovim-804e0740964bf84891d798d36d82a5c7ffa462f2.tar.gz
rneovim-804e0740964bf84891d798d36d82a5c7ffa462f2.tar.bz2
rneovim-804e0740964bf84891d798d36d82a5c7ffa462f2.zip
eval,functests: Reference all additional_* items created by ShaDa
Diffstat (limited to 'test/functional/shada/compatibility_spec.lua')
-rw-r--r--test/functional/shada/compatibility_spec.lua60
1 files changed, 60 insertions, 0 deletions
diff --git a/test/functional/shada/compatibility_spec.lua b/test/functional/shada/compatibility_spec.lua
index 45d747658a..13d4c44657 100644
--- a/test/functional/shada/compatibility_spec.lua
+++ b/test/functional/shada/compatibility_spec.lua
@@ -45,6 +45,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(true, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada! ' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with s/search pattern item with BOOL unknown (sX) key value', function()
@@ -72,6 +77,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(true, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with replacement item with BOOL additional value in list', function()
@@ -100,6 +110,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(true, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
for _, v in ipairs({{name='global mark', mpack='\007\001\018\131\162mX\195\161f\196\006/a/b/c\161nA'},
@@ -138,6 +153,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(false, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
if v.name == 'global mark' or v.name == 'local mark' then
@@ -175,6 +195,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(0, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
end
end
@@ -202,6 +227,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(false, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with register item with <C-a> name', function()
@@ -233,6 +263,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(0, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with register item with type 10', function()
@@ -265,6 +300,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(0, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with buffer list item with BOOL unknown (bX) key', function()
@@ -295,6 +335,11 @@ describe('ShaDa forward compatibility support code', function()
end
eq(false, found)
nvim_command('bwipeout!')
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with history item with BOOL additional value in list', function()
@@ -324,6 +369,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(true, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with history item with type 10', function()
@@ -356,6 +406,11 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(0, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
it('works with item with 100 type', function()
@@ -388,5 +443,10 @@ describe('ShaDa forward compatibility support code', function()
end
end
eq(0, found)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
+ nvim_command('rshada!' .. shada_fname)
+ nvim_eval('garbagecollect(1)')
+ nvim_eval('garbagecollect(1)')
end)
end)