aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-10 17:13:04 +0200
committerDaniel Hahler <git@thequod.de>2019-08-10 17:21:47 +0200
commitac395411cd3f174f3914781f1ce10be15c7b385c (patch)
tree2a0b0689e8d0f63a41ef0735123f87dff5d55ba4
parent4109ee8ef4e94bb87bb80e21a35b3697fd5e6229 (diff)
downloadrneovim-ac395411cd3f174f3914781f1ce10be15c7b385c.tar.gz
rneovim-ac395411cd3f174f3914781f1ce10be15c7b385c.tar.bz2
rneovim-ac395411cd3f174f3914781f1ce10be15c7b385c.zip
testdir/test_taglist.vim: move Test_tagsfile_without_trailing_newline
Align with Vim. Added in a79c0c8f7.
-rw-r--r--src/nvim/testdir/test_taglist.vim28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/nvim/testdir/test_taglist.vim b/src/nvim/testdir/test_taglist.vim
index 39bd5dcf04..eb64e59509 100644
--- a/src/nvim/testdir/test_taglist.vim
+++ b/src/nvim/testdir/test_taglist.vim
@@ -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