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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user