aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_findfile.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-12 08:28:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-12 14:08:34 +0800
commitd079995fb81bf3d61f7698373442f61476b99fce (patch)
tree27df065f0a9d2b58d90ad17a4cdea751a0b12156 /src/nvim/testdir/test_findfile.vim
parent6a670a00b3553a3ad87ddc6dfd06725796f58f1e (diff)
downloadrneovim-d079995fb81bf3d61f7698373442f61476b99fce.tar.gz
rneovim-d079995fb81bf3d61f7698373442f61476b99fce.tar.bz2
rneovim-d079995fb81bf3d61f7698373442f61476b99fce.zip
vim-patch:8.2.0270: some code not covered by tests
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5649) https://github.com/vim/vim/commit/bc2b71d44a0b90b6aeb3534a76912fccbe5577df
Diffstat (limited to 'src/nvim/testdir/test_findfile.vim')
-rw-r--r--src/nvim/testdir/test_findfile.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_findfile.vim b/src/nvim/testdir/test_findfile.vim
index 1684c5d30a..0f4b30aec2 100644
--- a/src/nvim/testdir/test_findfile.vim
+++ b/src/nvim/testdir/test_findfile.vim
@@ -193,12 +193,14 @@ func Test_find_cmd()
set path=.,./**/*
call CreateFiles()
cd Xdir1
+
" Test for :find
find foo
call assert_equal('foo', expand('%:.'))
2find foo
call assert_equal('Xdir2/foo', expand('%:.'))
call assert_fails('3find foo', 'E347:')
+
" Test for :sfind
enew
sfind barfoo
@@ -207,6 +209,7 @@ func Test_find_cmd()
close
call assert_fails('sfind baz', 'E345:')
call assert_equal(2, winnr('$'))
+
" Test for :tabfind
enew
tabfind foobar
@@ -215,7 +218,8 @@ func Test_find_cmd()
tabclose
call assert_fails('tabfind baz', 'E345:')
call assert_equal(1, tabpagenr('$'))
- " call chdir(save_dir)
+
+ call chdir(save_dir)
exe 'cd ' . save_dir
call CleanFiles()
let &path = save_path