mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: lint whitespace in legacy/ (#7308)
This commit is contained in:
committed by
Justin M. Keyes
parent
2b4a52f901
commit
126b2ca077
@@ -17,4 +17,4 @@ ignore = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- Ignore whitespace issues in converted Vim legacy tests.
|
-- Ignore whitespace issues in converted Vim legacy tests.
|
||||||
files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }}
|
--files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ local function insert_(content)
|
|||||||
feed_command('1', 'set cin ts=4 sw=4')
|
feed_command('1', 'set cin ts=4 sw=4')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
describe('cindent', function()
|
describe('cindent', function()
|
||||||
before_each(clear)
|
before_each(clear)
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local wait = helpers.wait
|
|||||||
describe('test5', function()
|
describe('test5', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start of test file Xxx
|
start of test file Xxx
|
||||||
|
|||||||
@@ -78,8 +78,8 @@ describe('argument list', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
teardown(function()
|
teardown(function()
|
||||||
os.remove('Xxx1')
|
os.remove('Xxx1')
|
||||||
os.remove('Xxx2')
|
os.remove('Xxx2')
|
||||||
os.remove('Xxx3')
|
os.remove('Xxx3')
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ describe(':ball', function()
|
|||||||
|
|
||||||
-- Open window for all args, close Xxx2
|
-- Open window for all args, close Xxx2
|
||||||
feed('$r4:ball<cr>')
|
feed('$r4:ball<cr>')
|
||||||
|
|
||||||
-- Write contents of this file
|
-- Write contents of this file
|
||||||
feed_command('%yank A')
|
feed_command('%yank A')
|
||||||
|
|
||||||
-- Append contents of second window (Xxx1)
|
-- Append contents of second window (Xxx1)
|
||||||
feed('')
|
feed('')
|
||||||
feed_command('%yank A')
|
feed_command('%yank A')
|
||||||
|
|||||||
@@ -94,6 +94,8 @@ describe('file reading, writing and bufnew and filter autocommands', function()
|
|||||||
eq(gzip_data, io.open('Xtestfile.gz'):read('*all'))
|
eq(gzip_data, io.open('Xtestfile.gz'):read('*all'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
it('FileReadPre, FileReadPost', function()
|
it('FileReadPre, FileReadPost', function()
|
||||||
prepare_gz_file('Xtestfile', text1)
|
prepare_gz_file('Xtestfile', text1)
|
||||||
feed_command('au! FileReadPre *.gz exe "silent !gzip -d " . shellescape(expand("<afile>"))')
|
feed_command('au! FileReadPre *.gz exe "silent !gzip -d " . shellescape(expand("<afile>"))')
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
|
|||||||
describe('alignment', function()
|
describe('alignment', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
test for :left
|
test for :left
|
||||||
@@ -112,7 +113,7 @@ describe('alignment', function()
|
|||||||
asxa;ofa axxxoikey
|
asxa;ofa axxxoikey
|
||||||
asdfaqwer axxxoikey
|
asdfaqwer axxxoikey
|
||||||
|
|
||||||
xxxxx xx xxxxxx
|
xxxxx xx xxxxxx
|
||||||
xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx
|
xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx
|
||||||
xxxxxxxxxxxxxxxxxx xxxxx xxxx, xxxx xxxx xxxx xxxx xxx xx xx
|
xxxxxxxxxxxxxxxxxx xxxxx xxxx, xxxx xxxx xxxx xxxx xxx xx xx
|
||||||
xx xxxxxxx. xxxx xxxx.
|
xx xxxxxxx. xxxx xxxx.
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
|
|||||||
describe([[performing "r<Tab>" with 'smarttab' and 'expandtab' set/not set, and "dv_"]], function()
|
describe([[performing "r<Tab>" with 'smarttab' and 'expandtab' set/not set, and "dv_"]], function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start text
|
start text
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ local feed_command = helpers.feed_command
|
|||||||
describe('joining lines', function()
|
describe('joining lines', function()
|
||||||
before_each(clear)
|
before_each(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespaces in a string)
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
it("keeps marks with different 'joinspaces' settings", function()
|
it("keeps marks with different 'joinspaces' settings", function()
|
||||||
insert([[
|
insert([[
|
||||||
firstline
|
firstline
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local wait = helpers.wait
|
|||||||
describe('lisp indent', function()
|
describe('lisp indent', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
(defun html-file (base)
|
(defun html-file (base)
|
||||||
@@ -22,7 +23,7 @@ describe('lisp indent', function()
|
|||||||
:if-exists :supersede)
|
:if-exists :supersede)
|
||||||
(let ((,ti ,title))
|
(let ((,ti ,title))
|
||||||
(as title ,ti)
|
(as title ,ti)
|
||||||
(with center
|
(with center
|
||||||
(as h2 (string-upcase ,ti)))
|
(as h2 (string-upcase ,ti)))
|
||||||
(brs 3)
|
(brs 3)
|
||||||
,@body))))
|
,@body))))
|
||||||
@@ -58,7 +59,7 @@ describe('lisp indent', function()
|
|||||||
:if-exists :supersede)
|
:if-exists :supersede)
|
||||||
(let ((,ti ,title))
|
(let ((,ti ,title))
|
||||||
(as title ,ti)
|
(as title ,ti)
|
||||||
(with center
|
(with center
|
||||||
(as h2 (string-upcase ,ti)))
|
(as h2 (string-upcase ,ti)))
|
||||||
(brs 3)
|
(brs 3)
|
||||||
,@body))))
|
,@body))))
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
|
|||||||
describe('Virtual replace mode', function()
|
describe('Virtual replace mode', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
-- Make sure that backspace works, no matter what termcap is used.
|
-- Make sure that backspace works, no matter what termcap is used.
|
||||||
feed_command('set t_kD=x7f t_kb=x08')
|
feed_command('set t_kD=x7f t_kb=x08')
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ describe('Visual block mode', function()
|
|||||||
abcdqqqqijklm]])
|
abcdqqqqijklm]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
it('should insert a block using cursor keys for movement', function()
|
it('should insert a block using cursor keys for movement', function()
|
||||||
insert([[
|
insert([[
|
||||||
aaaaaa
|
aaaaaa
|
||||||
@@ -104,6 +105,7 @@ describe('Visual block mode', function()
|
|||||||
456ab7]])
|
456ab7]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('should insert and append a block when virtualedit=all', function()
|
it('should insert and append a block when virtualedit=all', function()
|
||||||
insert([[
|
insert([[
|
||||||
line1
|
line1
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ describe('list and dictionary types', function()
|
|||||||
[3]]=])
|
[3]]=])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it('assignment to a list', function()
|
it('assignment to a list', function()
|
||||||
source([[
|
source([[
|
||||||
let l = [0, 1, 2, 3]
|
let l = [0, 1, 2, 3]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ describe('exists() and has() functions', function()
|
|||||||
write_file('test60.vim', [[
|
write_file('test60.vim', [[
|
||||||
" Vim script for exists() function test
|
" Vim script for exists() function test
|
||||||
" Script-local variables are checked here
|
" Script-local variables are checked here
|
||||||
|
|
||||||
" Existing script-local variable
|
" Existing script-local variable
|
||||||
let s:script_var = 1
|
let s:script_var = 1
|
||||||
echo 's:script_var: 1'
|
echo 's:script_var: 1'
|
||||||
@@ -21,7 +21,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Non-existing script-local variable
|
" Non-existing script-local variable
|
||||||
unlet s:script_var
|
unlet s:script_var
|
||||||
echo 's:script_var: 0'
|
echo 's:script_var: 0'
|
||||||
@@ -30,7 +30,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Existing script-local list
|
" Existing script-local list
|
||||||
let s:script_list = ["blue", "orange"]
|
let s:script_list = ["blue", "orange"]
|
||||||
echo 's:script_list: 1'
|
echo 's:script_list: 1'
|
||||||
@@ -39,7 +39,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Non-existing script-local list
|
" Non-existing script-local list
|
||||||
unlet s:script_list
|
unlet s:script_list
|
||||||
echo 's:script_list: 0'
|
echo 's:script_list: 0'
|
||||||
@@ -48,7 +48,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Existing script-local dictionary
|
" Existing script-local dictionary
|
||||||
let s:script_dict = {"xcord":100, "ycord":2}
|
let s:script_dict = {"xcord":100, "ycord":2}
|
||||||
echo 's:script_dict: 1'
|
echo 's:script_dict: 1'
|
||||||
@@ -57,7 +57,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Non-existing script-local dictionary
|
" Non-existing script-local dictionary
|
||||||
unlet s:script_dict
|
unlet s:script_dict
|
||||||
echo 's:script_dict: 0'
|
echo 's:script_dict: 0'
|
||||||
@@ -66,7 +66,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Existing script curly-brace variable
|
" Existing script curly-brace variable
|
||||||
let str = "script"
|
let str = "script"
|
||||||
let s:curly_{str}_var = 1
|
let s:curly_{str}_var = 1
|
||||||
@@ -76,7 +76,7 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Non-existing script-local curly-brace variable
|
" Non-existing script-local curly-brace variable
|
||||||
unlet s:curly_{str}_var
|
unlet s:curly_{str}_var
|
||||||
echo 's:curly_' . str . '_var: 0'
|
echo 's:curly_' . str . '_var: 0'
|
||||||
@@ -85,21 +85,21 @@ describe('exists() and has() functions', function()
|
|||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Existing script-local function
|
" Existing script-local function
|
||||||
function! s:my_script_func()
|
function! s:my_script_func()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
echo '*s:my_script_func: 1'
|
echo '*s:my_script_func: 1'
|
||||||
if exists('*s:my_script_func')
|
if exists('*s:my_script_func')
|
||||||
echo "OK"
|
echo "OK"
|
||||||
else
|
else
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Non-existing script-local function
|
" Non-existing script-local function
|
||||||
delfunction s:my_script_func
|
delfunction s:my_script_func
|
||||||
|
|
||||||
echo '*s:my_script_func: 0'
|
echo '*s:my_script_func: 0'
|
||||||
if !exists('*s:my_script_func')
|
if !exists('*s:my_script_func')
|
||||||
echo "OK"
|
echo "OK"
|
||||||
@@ -644,7 +644,7 @@ describe('exists() and has() functions', function()
|
|||||||
|
|
||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([[
|
expect([[
|
||||||
|
|
||||||
#myagroup: 1
|
#myagroup: 1
|
||||||
OK
|
OK
|
||||||
#myagroup+b: 0
|
#myagroup+b: 0
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ describe('visual block shift and tab characters', function()
|
|||||||
one two three
|
one two three
|
||||||
one two three
|
one two three
|
||||||
one two three
|
one two three
|
||||||
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
abcdefghijklmnopqrstuvwxyz
|
||||||
abcdefghijklmnopqrstuvwxyz
|
abcdefghijklmnopqrstuvwxyz
|
||||||
abcdefghijklmnopqrstuvwxyz
|
abcdefghijklmnopqrstuvwxyz
|
||||||
@@ -49,7 +49,7 @@ describe('visual block shift and tab characters', function()
|
|||||||
on1 two three
|
on1 two three
|
||||||
on1 two three
|
on1 two three
|
||||||
on1 two three
|
on1 two three
|
||||||
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
abcdefghijklmnopqrstuvwxyz
|
||||||
abcdefghij
|
abcdefghij
|
||||||
abc defghijklmnopqrstuvwxyz
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local expect = helpers.expect
|
|||||||
describe('text formatting', function()
|
describe('text formatting', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
-- The control character <C-A> (byte \x01) needs to be put in the buffer
|
-- The control character <C-A> (byte \x01) needs to be put in the buffer
|
||||||
-- directly. But the insert function sends the text to nvim in insert
|
-- directly. But the insert function sends the text to nvim in insert
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ describe('multibyte text', function()
|
|||||||
XYZ
|
XYZ
|
||||||
abc
|
abc
|
||||||
XYZ
|
XYZ
|
||||||
|
|
||||||
XYZ
|
XYZ
|
||||||
abc
|
abc
|
||||||
XYZ
|
XYZ
|
||||||
@@ -62,7 +62,7 @@ describe('multibyte text', function()
|
|||||||
Y
|
Y
|
||||||
X
|
X
|
||||||
Y
|
Y
|
||||||
|
|
||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
@@ -125,7 +125,7 @@ describe('multibyte text', function()
|
|||||||
ab
|
ab
|
||||||
X
|
X
|
||||||
Y
|
Y
|
||||||
|
|
||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
@@ -166,7 +166,7 @@ describe('multibyte text', function()
|
|||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
|
|
||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
@@ -190,7 +190,7 @@ describe('multibyte text', function()
|
|||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
|
|
||||||
X
|
X
|
||||||
X
|
X
|
||||||
a
|
a
|
||||||
@@ -239,7 +239,7 @@ describe('multibyte text', function()
|
|||||||
XX
|
XX
|
||||||
XXa
|
XXa
|
||||||
XXY
|
XXY
|
||||||
|
|
||||||
X
|
X
|
||||||
Xa
|
Xa
|
||||||
Xa
|
Xa
|
||||||
@@ -259,7 +259,7 @@ describe('multibyte text', function()
|
|||||||
it('formatting in replace mode', function()
|
it('formatting in replace mode', function()
|
||||||
insert([[
|
insert([[
|
||||||
{
|
{
|
||||||
|
|
||||||
}]])
|
}]])
|
||||||
feed_command('/^{/+1')
|
feed_command('/^{/+1')
|
||||||
feed_command('set tw=2 fo=tm')
|
feed_command('set tw=2 fo=tm')
|
||||||
|
|||||||
@@ -22,32 +22,32 @@ describe('78', function()
|
|||||||
let linecount = 10000
|
let linecount = 10000
|
||||||
while i <= linecount | call append(i - 1, i . text) | let i += 1 | endwhile
|
while i <= linecount | call append(i - 1, i . text) | let i += 1 | endwhile
|
||||||
preserve
|
preserve
|
||||||
|
|
||||||
" Get the name of the swap file, and clean up the :redir capture.
|
" Get the name of the swap file, and clean up the :redir capture.
|
||||||
redir => g:swapname | swapname | redir END
|
redir => g:swapname | swapname | redir END
|
||||||
let g:swapname = substitute(g:swapname, '[[:blank:][:cntrl:]]*\(.\{-}\)[[:blank:][:cntrl:]]*$', '\1', 'g')
|
let g:swapname = substitute(g:swapname, '[[:blank:][:cntrl:]]*\(.\{-}\)[[:blank:][:cntrl:]]*$', '\1', 'g')
|
||||||
let g:swapname = fnameescape(g:swapname)
|
let g:swapname = fnameescape(g:swapname)
|
||||||
|
|
||||||
" Make a copy of the swap file in Xswap
|
" Make a copy of the swap file in Xswap
|
||||||
set bin
|
set bin
|
||||||
exe 'sp ' . g:swapname
|
exe 'sp ' . g:swapname
|
||||||
w! Xswap
|
w! Xswap
|
||||||
|
|
||||||
set nobin
|
set nobin
|
||||||
new
|
new
|
||||||
only!
|
only!
|
||||||
bwipe! Xtest
|
bwipe! Xtest
|
||||||
call rename('Xswap', g:swapname)
|
call rename('Xswap', g:swapname)
|
||||||
|
|
||||||
"TODO(jkeyes): without 'silent', this hangs the test " at message:
|
"TODO(jkeyes): without 'silent', this hangs the test " at message:
|
||||||
" 'Recovery completed. You should check if everything is OK.'
|
" 'Recovery completed. You should check if everything is OK.'
|
||||||
silent recover Xtest
|
silent recover Xtest
|
||||||
|
|
||||||
call delete(g:swapname)
|
call delete(g:swapname)
|
||||||
new
|
new
|
||||||
call append(0, 'recovery start')
|
call append(0, 'recovery start')
|
||||||
wincmd w
|
wincmd w
|
||||||
|
|
||||||
let g:linedollar = line('$')
|
let g:linedollar = line('$')
|
||||||
if g:linedollar < linecount
|
if g:linedollar < linecount
|
||||||
wincmd w
|
wincmd w
|
||||||
@@ -56,7 +56,7 @@ describe('78', function()
|
|||||||
wincmd w
|
wincmd w
|
||||||
let linecount = g:linedollar
|
let linecount = g:linedollar
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let i = 1
|
let i = 1
|
||||||
while i <= linecount
|
while i <= linecount
|
||||||
if getline(i) != i . text
|
if getline(i) != i . text
|
||||||
@@ -72,7 +72,7 @@ describe('78', function()
|
|||||||
|
|
||||||
expect([[
|
expect([[
|
||||||
recovery start
|
recovery start
|
||||||
|
|
||||||
recovery end]])
|
recovery end]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ local feed_command, expect = helpers.feed_command, helpers.expect
|
|||||||
describe('coptions', function()
|
describe('coptions', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
aaa two three four
|
aaa two three four
|
||||||
|
|||||||
@@ -115,9 +115,9 @@ describe('case-insensitive string comparison in UTF-8', function()
|
|||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([=[
|
expect([=[
|
||||||
3732 checks passed
|
3732 checks passed
|
||||||
|
|
||||||
ABCD
|
ABCD
|
||||||
|
|
||||||
defg]=])
|
defg]=])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ local clear, expect = helpers.clear, helpers.expect
|
|||||||
describe('curswant', function()
|
describe('curswant', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start target options
|
start target options
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ end
|
|||||||
describe('cursor and column position with conceal and tabulators', function()
|
describe('cursor and column position with conceal and tabulators', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('are working', function()
|
it('are working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start:
|
start:
|
||||||
|
|||||||
@@ -63,26 +63,26 @@ describe("setting 'number' and 'relativenumber'", function()
|
|||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([[
|
expect([[
|
||||||
results:
|
results:
|
||||||
|
|
||||||
number
|
number
|
||||||
relativenumber
|
relativenumber
|
||||||
|
|
||||||
number
|
number
|
||||||
relativenumber
|
relativenumber
|
||||||
:setlocal must NOT reset the other global value
|
:setlocal must NOT reset the other global value
|
||||||
|
|
||||||
number
|
number
|
||||||
|
|
||||||
relativenumber
|
relativenumber
|
||||||
:setglobal MUST reset the other global value
|
:setglobal MUST reset the other global value
|
||||||
|
|
||||||
number
|
number
|
||||||
|
|
||||||
relativenumber
|
relativenumber
|
||||||
:set MUST reset the other global value
|
:set MUST reset the other global value
|
||||||
|
|
||||||
number
|
number
|
||||||
|
|
||||||
relativenumber]])
|
relativenumber]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
@@ -108,7 +108,7 @@ describe('findfile', function()
|
|||||||
|
|
||||||
expect([[
|
expect([[
|
||||||
Testing findfile
|
Testing findfile
|
||||||
|
|
||||||
src/nvim/api/vim.c
|
src/nvim/api/vim.c
|
||||||
api/vim.c
|
api/vim.c
|
||||||
api/vim.c]])
|
api/vim.c]])
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ describe('store cursor position in session file in UTF-8', function()
|
|||||||
os.remove('test.out')
|
os.remove('test.out')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start:
|
start:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ describe('store cursor position in session file in Latin-1', function()
|
|||||||
os.remove('test.out')
|
os.remove('test.out')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
start:
|
start:
|
||||||
|
|||||||
@@ -372,6 +372,7 @@ describe('Visual mode and operator', function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it('gv in exclusive select mode after operation', function()
|
it('gv in exclusive select mode after operation', function()
|
||||||
source([[
|
source([[
|
||||||
$put ='zzz '
|
$put ='zzz '
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ describe('E315 error', function()
|
|||||||
-- :del the ex-way will require the colon operator which resets the
|
-- :del the ex-way will require the colon operator which resets the
|
||||||
-- visual mode thus preventing the problem:
|
-- visual mode thus preventing the problem:
|
||||||
feed('GV:call TriggerTheProblem()<cr>')
|
feed('GV:call TriggerTheProblem()<cr>')
|
||||||
|
|
||||||
source([[
|
source([[
|
||||||
%del _
|
%del _
|
||||||
call append(line('$'), g:msg)
|
call append(line('$'), g:msg)
|
||||||
@@ -41,7 +41,7 @@ describe('E315 error', function()
|
|||||||
|
|
||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([[
|
expect([[
|
||||||
|
|
||||||
Everything's fine.]])
|
Everything's fine.]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ describe('errorformat', function()
|
|||||||
command("$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))")
|
command("$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))")
|
||||||
command("cgetexpr ['WWWW', 'GGGG', 'ZZZZ', 'EEEE', 'CCCC', 'YYYY']")
|
command("cgetexpr ['WWWW', 'GGGG', 'ZZZZ', 'EEEE', 'CCCC', 'YYYY']")
|
||||||
command("$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))")
|
command("$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))")
|
||||||
|
|
||||||
expect([=[
|
expect([=[
|
||||||
|
|
||||||
[['W', 1], ['E^@CCCC', 1]]
|
[['W', 1], ['E^@CCCC', 1]]
|
||||||
[['W', 1], ['E^@CCCC', 1]]
|
[['W', 1], ['E^@CCCC', 1]]
|
||||||
[['W', 1], ['ZZZZ', 0], ['E^@CCCC', 1], ['YYYY', 0]]]=])
|
[['W', 1], ['ZZZZ', 0], ['E^@CCCC', 1], ['YYYY', 0]]]=])
|
||||||
|
|||||||
@@ -89,18 +89,18 @@ describe('108', function()
|
|||||||
|
|
||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([=[
|
expect([=[
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- show backtrace:
|
- show backtrace:
|
||||||
|
|
||||||
2 function Foo[2]
|
2 function Foo[2]
|
||||||
1 Bar[2]
|
1 Bar[2]
|
||||||
->0 Bazz
|
->0 Bazz
|
||||||
line 2: let var3 = "another var"
|
line 2: let var3 = "another var"
|
||||||
|
|
||||||
show variables on different levels:
|
show variables on different levels:
|
||||||
|
|
||||||
6
|
6
|
||||||
2 function Foo[2]
|
2 function Foo[2]
|
||||||
->1 Bar[2]
|
->1 Bar[2]
|
||||||
@@ -112,9 +112,9 @@ describe('108', function()
|
|||||||
0 Bazz
|
0 Bazz
|
||||||
line 2: let var3 = "another var"
|
line 2: let var3 = "another var"
|
||||||
1
|
1
|
||||||
|
|
||||||
- undefined vars:
|
- undefined vars:
|
||||||
|
|
||||||
undefined var3 on former level:
|
undefined var3 on former level:
|
||||||
Error detected while processing function Foo[2]..Bar[2]..Bazz:
|
Error detected while processing function Foo[2]..Bar[2]..Bazz:
|
||||||
line 3:
|
line 3:
|
||||||
@@ -122,7 +122,7 @@ describe('108', function()
|
|||||||
E15: Invalid expression: var3
|
E15: Invalid expression: var3
|
||||||
here var3 is defined with "another var":
|
here var3 is defined with "another var":
|
||||||
another var
|
another var
|
||||||
|
|
||||||
undefined var2 on former level
|
undefined var2 on former level
|
||||||
Error detected while processing function Foo[2]..Bar:
|
Error detected while processing function Foo[2]..Bar:
|
||||||
line 3:
|
line 3:
|
||||||
@@ -130,37 +130,37 @@ describe('108', function()
|
|||||||
E15: Invalid expression: var2
|
E15: Invalid expression: var2
|
||||||
here var2 is defined with 10:
|
here var2 is defined with 10:
|
||||||
10
|
10
|
||||||
|
|
||||||
- backtrace movements:
|
- backtrace movements:
|
||||||
|
|
||||||
1 function Foo[2]
|
1 function Foo[2]
|
||||||
->0 Bar
|
->0 Bar
|
||||||
line 3: End of function
|
line 3: End of function
|
||||||
|
|
||||||
next command cannot go down, we are on bottom
|
next command cannot go down, we are on bottom
|
||||||
|
|
||||||
frame is zero
|
frame is zero
|
||||||
|
|
||||||
next command cannot go up, we are on top
|
next command cannot go up, we are on top
|
||||||
|
|
||||||
frame at highest level: 1
|
frame at highest level: 1
|
||||||
->1 function Foo[2]
|
->1 function Foo[2]
|
||||||
0 Bar
|
0 Bar
|
||||||
line 3: End of function
|
line 3: End of function
|
||||||
fil is not frame or finish, it is file
|
fil is not frame or finish, it is file
|
||||||
"[No Name]" --No lines in buffer--
|
"[No Name]" --No lines in buffer--
|
||||||
|
|
||||||
- relative backtrace movement
|
- relative backtrace movement
|
||||||
|
|
||||||
1 function Foo[2]
|
1 function Foo[2]
|
||||||
->0 Bar
|
->0 Bar
|
||||||
line 3: End of function
|
line 3: End of function
|
||||||
->1 function Foo[2]
|
->1 function Foo[2]
|
||||||
0 Bar
|
0 Bar
|
||||||
line 3: End of function
|
line 3: End of function
|
||||||
|
|
||||||
- go beyond limits does not crash
|
- go beyond limits does not crash
|
||||||
|
|
||||||
frame at highest level: 1
|
frame at highest level: 1
|
||||||
->1 function Foo[2]
|
->1 function Foo[2]
|
||||||
0 Bar
|
0 Bar
|
||||||
@@ -169,7 +169,7 @@ describe('108', function()
|
|||||||
1 function Foo[2]
|
1 function Foo[2]
|
||||||
->0 Bar
|
->0 Bar
|
||||||
line 3: End of function
|
line 3: End of function
|
||||||
|
|
||||||
- final result 19:
|
- final result 19:
|
||||||
19
|
19
|
||||||
]=])
|
]=])
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
|
|||||||
describe('breakindent', function()
|
describe('breakindent', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert('dummy text')
|
insert('dummy text')
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local helpers = require('test.functional.helpers')(after_each)
|
|||||||
local clear, source, expect = helpers.clear, helpers.source, helpers.expect
|
local clear, source, expect = helpers.clear, helpers.source, helpers.expect
|
||||||
local feed_command = helpers.feed_command
|
local feed_command = helpers.feed_command
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
describe('command_count', function()
|
describe('command_count', function()
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
-- It is relevant for the test to load a file initially. If this is
|
-- It is relevant for the test to load a file initially. If this is
|
||||||
@@ -133,8 +134,8 @@ describe('command_count', function()
|
|||||||
let g:lines = []
|
let g:lines = []
|
||||||
func BufStatus()
|
func BufStatus()
|
||||||
call add(g:lines,
|
call add(g:lines,
|
||||||
\ 'aaa: ' . buflisted(g:buf_aaa) .
|
\ 'aaa: ' . buflisted(g:buf_aaa) .
|
||||||
\ ' bbb: ' . buflisted(g:buf_bbb) .
|
\ ' bbb: ' . buflisted(g:buf_bbb) .
|
||||||
\ ' ccc: ' . buflisted(g:buf_ccc))
|
\ ' ccc: ' . buflisted(g:buf_ccc))
|
||||||
endfunc
|
endfunc
|
||||||
se nohidden
|
se nohidden
|
||||||
@@ -214,7 +215,7 @@ describe('command_count', function()
|
|||||||
RangeTabsAll 1 5
|
RangeTabsAll 1 5
|
||||||
RangeLines 2 5
|
RangeLines 2 5
|
||||||
LocalRangeLines 2 5
|
LocalRangeLines 2 5
|
||||||
|
|
||||||
5argu E16: Invalid range
|
5argu E16: Invalid range
|
||||||
4argu d
|
4argu d
|
||||||
1argu a
|
1argu a
|
||||||
@@ -225,7 +226,7 @@ describe('command_count', function()
|
|||||||
$tabe 2
|
$tabe 2
|
||||||
$+tabe E16: Invalid range
|
$+tabe E16: Invalid range
|
||||||
0tabm x
|
0tabm x
|
||||||
|
|
||||||
aaa: 1 bbb: 1 ccc: 1
|
aaa: 1 bbb: 1 ccc: 1
|
||||||
aaa: 1 bbb: 0 ccc: 0
|
aaa: 1 bbb: 0 ccc: 0
|
||||||
aaa: 0 bbb: 0 ccc: 0
|
aaa: 0 bbb: 0 ccc: 0
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ local clear, feed, expect = helpers.clear, helpers.feed, helpers.expect
|
|||||||
describe('CTRL-W in Insert mode', function()
|
describe('CTRL-W in Insert mode', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
it('works for multi-byte characters', function()
|
it('works for multi-byte characters', function()
|
||||||
|
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
|
|||||||
@@ -685,7 +685,7 @@ describe('Ctrl-A/Ctrl-X on visual selections', function()
|
|||||||
" Text:
|
" Text:
|
||||||
" 1 23
|
" 1 23
|
||||||
" 4 56
|
" 4 56
|
||||||
"
|
"
|
||||||
" Expected:
|
" Expected:
|
||||||
" 1) f2 Ctrl-V jl <ctrl-a>, repeat twice afterwards with .
|
" 1) f2 Ctrl-V jl <ctrl-a>, repeat twice afterwards with .
|
||||||
" 1 26
|
" 1 26
|
||||||
|
|||||||
@@ -4,12 +4,14 @@ local helpers = require('test.functional.helpers')(after_each)
|
|||||||
local feed, insert, source = helpers.feed, helpers.insert, helpers.source
|
local feed, insert, source = helpers.feed, helpers.insert, helpers.source
|
||||||
local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers.expect
|
local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers.expect
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
describe("'listchars'", function()
|
describe("'listchars'", function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
feed_command('set listchars&vi')
|
feed_command('set listchars&vi')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it("works with 'list'", function()
|
it("works with 'list'", function()
|
||||||
source([[
|
source([[
|
||||||
function GetScreenCharsForLine(lnum)
|
function GetScreenCharsForLine(lnum)
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
|
|||||||
describe('listlbr', function()
|
describe('listlbr', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
|
-- luacheck: ignore 611 (Line contains only whitespaces)
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespaces in a string)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
dummy text]])
|
dummy text]])
|
||||||
@@ -20,20 +23,20 @@ describe('listlbr', function()
|
|||||||
feed_command('set ts=4 sw=4 sts=4 linebreak sbr=+ wrap')
|
feed_command('set ts=4 sw=4 sts=4 linebreak sbr=+ wrap')
|
||||||
source([[
|
source([[
|
||||||
fu! ScreenChar(width)
|
fu! ScreenChar(width)
|
||||||
let c=''
|
let c=''
|
||||||
for j in range(1,4)
|
for j in range(1,4)
|
||||||
for i in range(1,a:width)
|
for i in range(1,a:width)
|
||||||
let c.=nr2char(screenchar(j, i))
|
let c.=nr2char(screenchar(j, i))
|
||||||
endfor
|
endfor
|
||||||
let c.="\n"
|
let c.="\n"
|
||||||
endfor
|
endfor
|
||||||
return c
|
return c
|
||||||
endfu
|
endfu
|
||||||
fu! DoRecordScreen()
|
fu! DoRecordScreen()
|
||||||
wincmd l
|
wincmd l
|
||||||
$put =printf(\"\n%s\", g:test)
|
$put =printf(\"\n%s\", g:test)
|
||||||
$put =g:line
|
$put =g:line
|
||||||
wincmd p
|
wincmd p
|
||||||
endfu
|
endfu
|
||||||
]])
|
]])
|
||||||
feed_command('let g:test="Test 1: set linebreak"')
|
feed_command('let g:test="Test 1: set linebreak"')
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ local clear, expect = helpers.clear, helpers.expect
|
|||||||
describe('linebreak', function()
|
describe('linebreak', function()
|
||||||
setup(clear)
|
setup(clear)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespaces in a string)
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
source([[
|
source([[
|
||||||
set wildchar=^E
|
set wildchar=^E
|
||||||
@@ -18,20 +20,20 @@ describe('linebreak', function()
|
|||||||
norm! zt
|
norm! zt
|
||||||
set ts=4 sw=4 sts=4 linebreak sbr=+ wrap
|
set ts=4 sw=4 sts=4 linebreak sbr=+ wrap
|
||||||
fu! ScreenChar(width, lines)
|
fu! ScreenChar(width, lines)
|
||||||
let c=''
|
let c=''
|
||||||
for j in range(1,a:lines)
|
for j in range(1,a:lines)
|
||||||
for i in range(1,a:width)
|
for i in range(1,a:width)
|
||||||
let c.=nr2char(screenchar(j, i))
|
let c.=nr2char(screenchar(j, i))
|
||||||
endfor
|
endfor
|
||||||
let c.="\n"
|
let c.="\n"
|
||||||
endfor
|
endfor
|
||||||
return c
|
return c
|
||||||
endfu
|
endfu
|
||||||
fu! DoRecordScreen()
|
fu! DoRecordScreen()
|
||||||
wincmd l
|
wincmd l
|
||||||
$put =printf(\"\n%s\", g:test)
|
$put =printf(\"\n%s\", g:test)
|
||||||
$put =g:line
|
$put =g:line
|
||||||
wincmd p
|
wincmd p
|
||||||
endfu
|
endfu
|
||||||
"
|
"
|
||||||
let g:test ="Test 1: set linebreak + set list + fancy listchars"
|
let g:test ="Test 1: set linebreak + set list + fancy listchars"
|
||||||
@@ -148,22 +150,22 @@ describe('linebreak', function()
|
|||||||
|
|
||||||
-- Assert buffer contents.
|
-- Assert buffer contents.
|
||||||
expect([[
|
expect([[
|
||||||
|
|
||||||
abcdef hijklmn pqrstuvwxyz 1060ABCDEFGHIJKLMNOP
|
abcdef hijklmn pqrstuvwxyz 1060ABCDEFGHIJKLMNOP
|
||||||
|
|
||||||
Test 1: set linebreak + set list + fancy listchars
|
Test 1: set linebreak + set list + fancy listchars
|
||||||
▕———abcdef
|
▕———abcdef
|
||||||
+hijklmn▕———
|
+hijklmn▕———
|
||||||
+pqrstuvwxyz␣1060ABC
|
+pqrstuvwxyz␣1060ABC
|
||||||
+DEFGHIJKLMNOPˑ¶
|
+DEFGHIJKLMNOPˑ¶
|
||||||
|
|
||||||
Test 2: set nolinebreak list
|
Test 2: set nolinebreak list
|
||||||
▕———abcdef hijklmn▕—
|
▕———abcdef hijklmn▕—
|
||||||
+pqrstuvwxyz␣1060ABC
|
+pqrstuvwxyz␣1060ABC
|
||||||
+DEFGHIJKLMNOPˑ¶
|
+DEFGHIJKLMNOPˑ¶
|
||||||
¶
|
¶
|
||||||
*mask = nil;
|
*mask = nil;
|
||||||
|
|
||||||
Test 3: set linebreak nolist
|
Test 3: set linebreak nolist
|
||||||
*mask = nil;
|
*mask = nil;
|
||||||
~
|
~
|
||||||
@@ -177,7 +179,7 @@ describe('linebreak', function()
|
|||||||
#define MSG_MODE_CONSOLE 2
|
#define MSG_MODE_CONSOLE 2
|
||||||
#define MSG_MODE_FILE_AND_CONSOLE 3
|
#define MSG_MODE_FILE_AND_CONSOLE 3
|
||||||
#define MSG_MODE_FILE_THEN_CONSOLE 4
|
#define MSG_MODE_FILE_THEN_CONSOLE 4
|
||||||
|
|
||||||
Test 4: set linebreak list listchars and concealing
|
Test 4: set linebreak list listchars and concealing
|
||||||
#define ABCDE>-->---1
|
#define ABCDE>-->---1
|
||||||
#define >CDEF>-->---1
|
#define >CDEF>-->---1
|
||||||
@@ -187,7 +189,7 @@ describe('linebreak', function()
|
|||||||
#define >_CONSOLE>---------->---2
|
#define >_CONSOLE>---------->---2
|
||||||
#define >_FILE_AND_CONSOLE>---------3
|
#define >_FILE_AND_CONSOLE>---------3
|
||||||
bbeeeeee ; some text
|
bbeeeeee ; some text
|
||||||
|
|
||||||
Test 5: set linebreak list listchars and concealing part2
|
Test 5: set linebreak list listchars and concealing part2
|
||||||
eeeeee>--->-;>some text
|
eeeeee>--->-;>some text
|
||||||
Test 6: Screenattributes for comment
|
Test 6: Screenattributes for comment
|
||||||
@@ -196,10 +198,10 @@ describe('linebreak', function()
|
|||||||
Attribut 0 and 1 and 3 and 5 are different!
|
Attribut 0 and 1 and 3 and 5 are different!
|
||||||
Test 8: set linebreak with visual block mode and v_b_A and selection=exclusive and multibyte char
|
Test 8: set linebreak with visual block mode and v_b_A and selection=exclusive and multibyte char
|
||||||
long line: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar TARGETÃx' at end
|
long line: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar TARGETÃx' at end
|
||||||
|
|
||||||
a b c
|
a b c
|
||||||
a b c
|
a b c
|
||||||
|
|
||||||
Test 9: a multibyte sign and colorcolumn
|
Test 9: a multibyte sign and colorcolumn
|
||||||
¶
|
¶
|
||||||
+a b c¶
|
+a b c¶
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ describe('marks', function()
|
|||||||
clear()
|
clear()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 621 (Indentation)
|
||||||
it('restores a deleted mark after delete-undo-redo-undo', function()
|
it('restores a deleted mark after delete-undo-redo-undo', function()
|
||||||
insert([[
|
insert([[
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ describe('set', function()
|
|||||||
$put =&path]])
|
$put =&path]])
|
||||||
|
|
||||||
expect([[
|
expect([[
|
||||||
|
|
||||||
foo,,bar]])
|
foo,,bar]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -172,9 +172,9 @@ describe('packadd', function()
|
|||||||
|
|
||||||
helptags ALL
|
helptags ALL
|
||||||
|
|
||||||
let tags1 = readfile(docdir1 . '/tags')
|
let tags1 = readfile(docdir1 . '/tags')
|
||||||
call assert_true(tags1[0] =~ 'look-here')
|
call assert_true(tags1[0] =~ 'look-here')
|
||||||
let tags2 = readfile(docdir2 . '/tags')
|
let tags2 = readfile(docdir2 . '/tags')
|
||||||
call assert_true(tags2[0] =~ 'look-away')
|
call assert_true(tags2[0] =~ 'look-away')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|||||||
@@ -53,11 +53,11 @@ describe("'tagcase' option", function()
|
|||||||
-- Verify that the correct number of matching tags is found for all values of
|
-- Verify that the correct number of matching tags is found for all values of
|
||||||
-- 'ignorecase' and global and local values 'tagcase', in all combinations.
|
-- 'ignorecase' and global and local values 'tagcase', in all combinations.
|
||||||
insert([[
|
insert([[
|
||||||
|
|
||||||
Foo
|
Foo
|
||||||
Bar
|
Bar
|
||||||
foo
|
foo
|
||||||
|
|
||||||
end text]])
|
end text]])
|
||||||
|
|
||||||
source([[
|
source([[
|
||||||
@@ -70,7 +70,7 @@ describe("'tagcase' option", function()
|
|||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
1,/^end text$/d]])
|
1,/^end text$/d]])
|
||||||
|
|
||||||
expect([[
|
expect([[
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ describe('utf8', function()
|
|||||||
eq(1, eval('strchars("\\u20dd", 1)'))
|
eq(1, eval('strchars("\\u20dd", 1)'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- luacheck: ignore 613 (Trailing whitespace in a string)
|
||||||
it('customlist completion', function()
|
it('customlist completion', function()
|
||||||
source([[
|
source([[
|
||||||
function! CustomComplete1(lead, line, pos)
|
function! CustomComplete1(lead, line, pos)
|
||||||
|
|||||||
Reference in New Issue
Block a user