aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/eval_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-29 00:19:41 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-29 00:20:47 -0500
commit41f6a10a9b83542fd7d1ea898799c1979db38f2c (patch)
treeff970dc5d668b1f648401cda3943ae095e409651 /test/functional/legacy/eval_spec.lua
parent6c77ea1cb6bc3a6e90de5581fcd75dc129b3d08c (diff)
downloadrneovim-41f6a10a9b83542fd7d1ea898799c1979db38f2c.tar.gz
rneovim-41f6a10a9b83542fd7d1ea898799c1979db38f2c.tar.bz2
rneovim-41f6a10a9b83542fd7d1ea898799c1979db38f2c.zip
test: eval_spec.lua: minor cleanup
Diffstat (limited to 'test/functional/legacy/eval_spec.lua')
-rw-r--r--test/functional/legacy/eval_spec.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/functional/legacy/eval_spec.lua b/test/functional/legacy/eval_spec.lua
index 33114f2b1a..05cd73dbd4 100644
--- a/test/functional/legacy/eval_spec.lua
+++ b/test/functional/legacy/eval_spec.lua
@@ -17,11 +17,11 @@ describe('eval', function()
lang C
fun AppendRegContents(reg)
- call AppendRegParts(a:reg, getregtype(a:reg), getreg(a:reg), string(getreg(a:reg, 0, 1)), getreg(a:reg, 1), string(getreg(a:reg, 1, 1)))
+ call AppendRegParts(a:reg, getregtype(a:reg), getreg(a:reg), string(getreg(a:reg, 0, 1)), getreg(a:reg, 1), string(getreg(a:reg, 1, 1)))
endfun
fun AppendRegParts(reg, type, cont, strcont, cont1, strcont1)
- call append('$', printf('%s: type %s; value: %s (%s), expr: %s (%s)', a:reg, a:type, a:cont, a:strcont, a:cont1, a:strcont1))
+ call append('$', printf('%s: type %s; value: %s (%s), expr: %s (%s)', a:reg, a:type, a:cont, a:strcont, a:cont1, a:strcont1))
endfun
command -nargs=? AR :call AppendRegContents(<q-args>)
@@ -38,8 +38,6 @@ describe('eval', function()
end)
before_each(clear)
teardown(function()
- os.remove('test.out')
- os.remove('test_eval_func.vim')
os.remove('test_eval_setup.vim')
end)
@@ -421,7 +419,7 @@ describe('eval', function()
-- The tests for setting lists with NLs are split into seperate it() blocks
-- to make the expect() calls easier to write. Otherwise the null byte can
- -- make trouble on a line on it's own.
+ -- make trouble on a line on its own.
it('setting lists with NLs with setreg(), part 1', function()
execute('so test_eval_setup.vim')
execute([=[call SetReg('a', ['abcA4-0', "\n", "abcA4-2\n", "\nabcA4-3", "abcA4-4\nabcA4-4-2"])]=])
@@ -519,7 +517,6 @@ describe('eval', function()
=: type v; value: abc/]].."\x00 (['abc/\x00"..[[']), expr: "abc/]]..'\x00'..[[" (['"abc/]]..'\x00'..[["'])]])
end)
- -- If the clipboard feature is not available the next test will be sciped.
if has_clipboard() then
it('system clipboard', function()
insert([[