diff options
author | ZyX <kp-pav@yandex.ru> | 2015-08-09 18:41:25 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:00:36 +0300 |
commit | 830c8bd23e693a9081ea7ebeb11b415822b1e3b3 (patch) | |
tree | f18ac7cff92bc9ab6a63aa96773ed2d3cbf5b4ff /test/functional/shada/errors_spec.lua | |
parent | c5554cbb87de7edcbdb2f2f8eb7d1153dee2ba1d (diff) | |
download | rneovim-830c8bd23e693a9081ea7ebeb11b415822b1e3b3.tar.gz rneovim-830c8bd23e693a9081ea7ebeb11b415822b1e3b3.tar.bz2 rneovim-830c8bd23e693a9081ea7ebeb11b415822b1e3b3.zip |
functests: Add a number of “generic” functional tests
Diffstat (limited to 'test/functional/shada/errors_spec.lua')
-rw-r--r-- | test/functional/shada/errors_spec.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/functional/shada/errors_spec.lua b/test/functional/shada/errors_spec.lua index 739f2ff148..ce849fdcbd 100644 --- a/test/functional/shada/errors_spec.lua +++ b/test/functional/shada/errors_spec.lua @@ -10,20 +10,14 @@ local reset, set_additional_cmd, clear, exc_exec, get_shada_rw = shada_helpers.clear, shada_helpers.exc_exec, shada_helpers.get_shada_rw -local wshada, sdrcmd, shada_fname = get_shada_rw('Xtest-functional-shada-errors.shada') +local wshada, sdrcmd, shada_fname, clean = + get_shada_rw('Xtest-functional-shada-errors.shada') describe('ShaDa error handling', function() before_each(reset) after_each(function() clear() - os.remove(shada_fname) - local i = ('a'):byte() - while i < ('z'):byte() do - if not os.remove(shada_fname .. ('.tmp.%c'):format(i)) then - break - end - i = i + 1 - end + clean() end) -- Note: most of tests have additional items like sX, mX, rX. These are for |