diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-11-17 23:31:22 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-11-23 13:57:21 +0100 |
commit | d9fbc1865bf5237235e96ae8822326faa84ff9fc (patch) | |
tree | e61dc677cf85faa79a92814cbdadb63de7477635 /test/functional/legacy/063_match_and_matchadd_spec.lua | |
parent | 4a69e55f390fcbd5e3d6c88c882c0b921c9b6f87 (diff) | |
download | rneovim-d9fbc1865bf5237235e96ae8822326faa84ff9fc.tar.gz rneovim-d9fbc1865bf5237235e96ae8822326faa84ff9fc.tar.bz2 rneovim-d9fbc1865bf5237235e96ae8822326faa84ff9fc.zip |
test/functional: clean up according to luacheck (part 2)
Diffstat (limited to 'test/functional/legacy/063_match_and_matchadd_spec.lua')
-rw-r--r-- | test/functional/legacy/063_match_and_matchadd_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/legacy/063_match_and_matchadd_spec.lua b/test/functional/legacy/063_match_and_matchadd_spec.lua index d819db7812..a354d4d328 100644 --- a/test/functional/legacy/063_match_and_matchadd_spec.lua +++ b/test/functional/legacy/063_match_and_matchadd_spec.lua @@ -2,10 +2,9 @@ local helpers = require('test.functional.helpers') local Screen = require('test.functional.ui.screen') -local feed, insert, source = helpers.feed, helpers.insert, helpers.source -local eval, clear, execute, expect = helpers.eval, helpers.clear, helpers.execute -local expect, eq, neq = helpers.expect, helpers.eq, helpers.neq -local command = helpers.command +local feed, insert = helpers.feed, helpers.insert +local eval, clear, execute = helpers.eval, helpers.clear, helpers.execute +local eq, neq = helpers.eq, helpers.neq describe('063: Test for ":match", "matchadd()" and related functions', function() setup(clear) @@ -86,7 +85,7 @@ describe('063: Test for ":match", "matchadd()" and related functions', function( execute("2match MyGroup2 /HUMPPA/") execute("3match MyGroup3 /VIM/") execute("let ml = getmatches()") - ml = eval("ml") + local ml = eval("ml") execute("call clearmatches()") execute("call setmatches(ml)") eq(ml, eval('getmatches()')) |