Mercurial > vim
comparison src/testdir/test_packadd.vim @ 8416:1a6527cce675 v7.4.1499
commit https://github.com/vim/vim/commit/be82c254862e475a582c0717455e1db6bf96b0d0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 6 14:44:08 2016 +0100
patch 7.4.1499
Problem: No error message when :packadd does not find anything.
Solution: Add an error message. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Mar 2016 14:45:04 +0100 |
parents | eed1ca42f9aa |
children | b4350a4d1e01 |
comparison
equal
deleted
inserted
replaced
8415:e4cd8ab5610d | 8416:1a6527cce675 |
---|---|
29 | 29 |
30 call assert_equal(42, g:plugin_works) | 30 call assert_equal(42, g:plugin_works) |
31 call assert_equal(17, g:ftdetect_works) | 31 call assert_equal(17, g:ftdetect_works) |
32 call assert_true(len(&rtp) > len(rtp)) | 32 call assert_true(len(&rtp) > len(rtp)) |
33 call assert_true(&rtp =~ 'testdir/Xdir/pack/mine/opt/mytest\($\|,\)') | 33 call assert_true(&rtp =~ 'testdir/Xdir/pack/mine/opt/mytest\($\|,\)') |
34 | |
35 " Check exception | |
36 call assert_fails("packadd directorynotfound", 'E919:') | |
37 call assert_fails("packadd", 'E471:') | |
34 endfunc | 38 endfunc |
35 | 39 |
36 func Test_packadd_noload() | 40 func Test_packadd_noload() |
37 call mkdir(s:plugdir . '/plugin', 'p') | 41 call mkdir(s:plugdir . '/plugin', 'p') |
38 call mkdir(s:plugdir . '/syntax', 'p') | 42 call mkdir(s:plugdir . '/syntax', 'p') |