diff options
author | James McCoy <jamessan@jamessan.com> | 2016-06-20 10:12:07 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-07-08 01:43:36 -0400 |
commit | 8ecdc571b0cf679c5195088d140f2988bcbe87e1 (patch) | |
tree | b8b19e35a0d0109c3a366af490f09dac135b47d0 /test/functional/legacy/packadd_spec.lua | |
parent | 85e539c99609cec0b5a0eab3aded394d0bbab555 (diff) | |
download | rneovim-8ecdc571b0cf679c5195088d140f2988bcbe87e1.tar.gz rneovim-8ecdc571b0cf679c5195088d140f2988bcbe87e1.tar.bz2 rneovim-8ecdc571b0cf679c5195088d140f2988bcbe87e1.zip |
vim-patch:7.4.1499
Problem: No error message when :packadd does not find anything.
Solution: Add an error message. (Hirohito Higashi)
https://github.com/vim/vim/commit/be82c254862e475a582c0717455e1db6bf96b0d0
Diffstat (limited to 'test/functional/legacy/packadd_spec.lua')
-rw-r--r-- | test/functional/legacy/packadd_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua index 9ca7c4e723..e84a8e60d6 100644 --- a/test/functional/legacy/packadd_spec.lua +++ b/test/functional/legacy/packadd_spec.lua @@ -45,6 +45,10 @@ describe('packadd', function() call assert_true(17, g:ftdetect_works) call assert_true(len(&rtp) > len(rtp)) call assert_true(&rtp =~ (s:plugdir . '\($\|,\)')) + + " Check exception + call assert_fails("packadd directorynotfound", 'E919:') + call assert_fails("packadd", 'E471:') endfunc func Test_packadd_noload() |