0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.2.0358: insufficient testing for indent.c

Problem:    Insufficient testing for indent.c.
Solution:   Add indent tests. (Yegappan Lakshmanan, closes #5736)
This commit is contained in:
Bram Moolenaar
2020-03-06 20:36:04 +01:00
parent 49b79bd488
commit bd7206e02c
8 changed files with 188 additions and 0 deletions

View File

@@ -73,3 +73,17 @@ func Test_expand()
" Don't add any line above this, otherwise <slnum> will change.
quit
endfunc
" Test for 'wildignore' with expand()
func Test_expand_wildignore()
set wildignore=*.vim
call assert_equal('', expand('test_expand_func.vim'))
call assert_equal('', expand('test_expand_func.vim', 0))
call assert_equal([], expand('test_expand_func.vim', 0, 1))
call assert_equal('test_expand_func.vim', expand('test_expand_func.vim', 1))
call assert_equal(['test_expand_func.vim'],
\ expand('test_expand_func.vim', 1, 1))
set wildignore&
endfunc
" vim: shiftwidth=2 sts=2 expandtab