aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/eval_spec.lua
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-01-26 11:28:19 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-01-27 12:52:13 +0100
commit4b13cbc76d2f688ea2d59aef31704161afd1074e (patch)
tree1da3fc7e485590271e408dc39b98a428fd5218ff /test/functional/legacy/eval_spec.lua
parentfb3a6b925b68c862b2cd47ea2ba11d7f828d136c (diff)
downloadrneovim-4b13cbc76d2f688ea2d59aef31704161afd1074e.tar.gz
rneovim-4b13cbc76d2f688ea2d59aef31704161afd1074e.tar.bz2
rneovim-4b13cbc76d2f688ea2d59aef31704161afd1074e.zip
tests: Comments and typos after review.
Helped-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'test/functional/legacy/eval_spec.lua')
-rw-r--r--test/functional/legacy/eval_spec.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functional/legacy/eval_spec.lua b/test/functional/legacy/eval_spec.lua
index 74b02afaff..583b519cdd 100644
--- a/test/functional/legacy/eval_spec.lua
+++ b/test/functional/legacy/eval_spec.lua
@@ -7,7 +7,7 @@ local feed, insert, source = helpers.feed, helpers.insert, helpers.source
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
local eq, eval, wait, write_file = helpers.eq, helpers.eval, helpers.wait, helpers.write_file
-describe('various eval features', function()
+describe('eval', function()
setup(function()
write_file('test_eval_setup.vim', [[
set encoding=latin1
@@ -50,7 +50,7 @@ describe('various eval features', function()
os.remove('test_eval_setup.vim')
end)
- it('let tests', function()
+ it(':let', function()
execute('so test_eval_setup.vim')
execute([[let @" = 'abc']])
execute('AR "')
@@ -213,6 +213,9 @@ describe('various eval features', function()
execute([[call setreg('d', 'abcD2', 'V')]])
execute([[call setreg('e', 'abcE2', 'b')]])
execute([[call setreg('f', 'abcF2', "\<C-v>")]])
+ -- These registers where set like this in the old test_eval.in but never
+ -- copied to the output buffer with SetReg(). They do not appear in
+ -- test_eval.ok. Therefore they are commented out.
--execute([[call setreg('g', 'abcG2', 'b10')]])
--execute([[call setreg('h', 'abcH2', "\<C-v>10")]])
--execute([[call setreg('I', 'abcI2')]])
@@ -575,7 +578,7 @@ describe('various eval features', function()
eq('Vim(function):E128: Function name must start with a capital or "s:": g:test()', eval('tmp'))
end)
- it('Function name folowed by #', function()
+ it('Function name followed by #', function()
execute('try')
execute(' func! test2() "#')
execute(' echo "test2"')