diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-05 22:47:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 22:47:19 +0100 |
commit | 5d2e4a5021fb83c3356c6482fef7baf2729dd3a5 (patch) | |
tree | 2dfd45362c37f93de315cf046c7af72c29018bc6 /src/nvim/testdir/test_findfile.vim | |
parent | e386e51d9e284ece5fe78a6dbcc0c8c4f166e48a (diff) | |
parent | 04059312b075573b3e008abada1544159a127bfa (diff) | |
download | rneovim-5d2e4a5021fb83c3356c6482fef7baf2729dd3a5.tar.gz rneovim-5d2e4a5021fb83c3356c6482fef7baf2729dd3a5.tar.bz2 rneovim-5d2e4a5021fb83c3356c6482fef7baf2729dd3a5.zip |
Merge #9679 from janlazo/vim-8.1.0891
Diffstat (limited to 'src/nvim/testdir/test_findfile.vim')
-rw-r--r-- | src/nvim/testdir/test_findfile.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_findfile.vim b/src/nvim/testdir/test_findfile.vim index 78e51ed836..0bae161a8b 100644 --- a/src/nvim/testdir/test_findfile.vim +++ b/src/nvim/testdir/test_findfile.vim @@ -119,6 +119,14 @@ func Test_findfile() let &shellslash = save_shellslash endfunc +func Test_findfile_error() + call assert_fails('call findfile([])', 'E730:') + call assert_fails('call findfile("x", [])', 'E730:') + call assert_fails('call findfile("x", "", [])', 'E745:') + call assert_fails('call findfile("x", "**x")', 'E343:') + call assert_fails('call findfile("x", repeat("x", 5000))', 'E854:') +endfunc + " Test finddir({name} [, {path} [, {count}]]) func Test_finddir() let save_path = &path @@ -167,3 +175,11 @@ func Test_finddir() let &path = save_path let &shellslash = save_shellslash endfunc + +func Test_finddir_error() + call assert_fails('call finddir([])', 'E730:') + call assert_fails('call finddir("x", [])', 'E730:') + call assert_fails('call finddir("x", "", [])', 'E745:') + call assert_fails('call finddir("x", "**x")', 'E343:') + call assert_fails('call finddir("x", repeat("x", 5000))', 'E854:') +endfunc |