aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/overrides_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-30 03:35:45 +0300
committerZyX <kp-pav@yandex.ru>2017-03-27 00:18:55 +0300
commita24e94215ed0a4bfe55b6741ab2e9477b278dbb7 (patch)
tree7a89dfa4768cfccb51dc69a74fc8b361f6ab5394 /test/functional/lua/overrides_spec.lua
parentd13fdfd4467db8245159d10d96c1f30b24b51565 (diff)
downloadrneovim-a24e94215ed0a4bfe55b6741ab2e9477b278dbb7.tar.gz
rneovim-a24e94215ed0a4bfe55b6741ab2e9477b278dbb7.tar.bz2
rneovim-a24e94215ed0a4bfe55b6741ab2e9477b278dbb7.zip
eval,functests: Fix linter errors
Diffstat (limited to 'test/functional/lua/overrides_spec.lua')
-rw-r--r--test/functional/lua/overrides_spec.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/functional/lua/overrides_spec.lua b/test/functional/lua/overrides_spec.lua
index 60a0589b48..c8aee130a7 100644
--- a/test/functional/lua/overrides_spec.lua
+++ b/test/functional/lua/overrides_spec.lua
@@ -79,14 +79,13 @@ describe('debug.debug', function()
})
end)
it('works', function()
- write_file(fname, [[
+ command([[lua
function Test(a)
print(a)
debug.debug()
print(a * 100)
end
]])
- eq('', redir_exec('luafile ' .. fname))
feed(':lua Test()\n')
screen:expect([[
{0:~ }|
@@ -133,9 +132,9 @@ describe('debug.debug', function()
lua_debug> print("TEST") |
TEST |
|
- {E:E5105: Error while calling lua chunk: Xtest-functiona}|
- {E:l-lua-overrides-luafile:4: attempt to perform arithme}|
- {E:tic on local 'a' (a nil value)} |
+ {E:E5105: Error while calling lua chunk: [string "<VimL }|
+ {E:compiled string>"]:5: attempt to perform arithmetic o}|
+ {E:n local 'a' (a nil value)} |
Interrupt: {cr:Press ENTER or type command to continue}^ |
]])
feed('<C-l>:lua Test()\n')
@@ -167,9 +166,9 @@ describe('debug.debug', function()
{0:~ }|
nil |
lua_debug> |
- {E:E5105: Error while calling lua chunk: Xtest-functiona}|
- {E:l-lua-overrides-luafile:4: attempt to perform arithme}|
- {E:tic on local 'a' (a nil value)} |
+ {E:E5105: Error while calling lua chunk: [string "<VimL }|
+ {E:compiled string>"]:5: attempt to perform arithmetic o}|
+ {E:n local 'a' (a nil value)} |
{cr:Press ENTER or type command to continue}^ |
]])
end)