testdir/test_taglist.vim: move Test_tagsfile_without_trailing_newline
Align with Vim. Added in a79c0c8f7
.
This commit is contained in:
parent
4109ee8ef4
commit
ac395411cd
|
@ -79,20 +79,6 @@ func Test_tags_too_long()
|
|||
tags
|
||||
endfunc
|
||||
|
||||
" For historical reasons we support a tags file where the last line is missing
|
||||
" the newline.
|
||||
func Test_tagsfile_without_trailing_newline()
|
||||
call writefile(["Foo\tfoo\t1"], 'Xtags', 'b')
|
||||
set tags=Xtags
|
||||
|
||||
let tl = taglist('.*')
|
||||
call assert_equal(1, len(tl))
|
||||
call assert_equal('Foo', tl[0].name)
|
||||
|
||||
call delete('Xtags')
|
||||
set tags&
|
||||
endfunc
|
||||
|
||||
func Test_tagfiles()
|
||||
call assert_equal([], tagfiles())
|
||||
|
||||
|
@ -116,3 +102,17 @@ func Test_tagfiles()
|
|||
call delete('Xtags2')
|
||||
bd
|
||||
endfunc
|
||||
|
||||
" For historical reasons we support a tags file where the last line is missing
|
||||
" the newline.
|
||||
func Test_tagsfile_without_trailing_newline()
|
||||
call writefile(["Foo\tfoo\t1"], 'Xtags', 'b')
|
||||
set tags=Xtags
|
||||
|
||||
let tl = taglist('.*')
|
||||
call assert_equal(1, len(tl))
|
||||
call assert_equal('Foo', tl[0].name)
|
||||
|
||||
call delete('Xtags')
|
||||
set tags&
|
||||
endfunc
|
||||
|
|
Loading…
Reference in New Issue