1
0
forked from aniani/vim

patch 7.4.1499

Problem:    No error message when :packadd does not find anything.
Solution:   Add an error message. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-03-06 14:44:08 +01:00
parent 2588b5a43f
commit be82c25486
6 changed files with 36 additions and 12 deletions

View File

@@ -31,6 +31,10 @@ func Test_packadd()
call assert_equal(17, g:ftdetect_works)
call assert_true(len(&rtp) > len(rtp))
call assert_true(&rtp =~ 'testdir/Xdir/pack/mine/opt/mytest\($\|,\)')
" Check exception
call assert_fails("packadd directorynotfound", 'E919:')
call assert_fails("packadd", 'E471:')
endfunc
func Test_packadd_noload()