Mercurial > vim
comparison src/testdir/test_expand_func.vim @ 19603:6d3c683466f4 v8.2.0358
patch 8.2.0358: insufficient testing for indent.c
Commit: https://github.com/vim/vim/commit/bd7206e02c957f0619e68e1628e2a3e91dd41e06
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 6 20:36:04 2020 +0100
patch 8.2.0358: insufficient testing for indent.c
Problem: Insufficient testing for indent.c.
Solution: Add indent tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5736)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 Mar 2020 20:45:04 +0100 |
parents | 73ddc462979d |
children | 546bdeef35f1 |
comparison
equal
deleted
inserted
replaced
19602:03c12433ae36 | 19603:6d3c683466f4 |
---|---|
71 call assert_equal('3', '<slnum>'->expand()) | 71 call assert_equal('3', '<slnum>'->expand()) |
72 call assert_equal(['4'], expand('<slnum>', v:false, v:true)) | 72 call assert_equal(['4'], expand('<slnum>', v:false, v:true)) |
73 " Don't add any line above this, otherwise <slnum> will change. | 73 " Don't add any line above this, otherwise <slnum> will change. |
74 quit | 74 quit |
75 endfunc | 75 endfunc |
76 | |
77 " Test for 'wildignore' with expand() | |
78 func Test_expand_wildignore() | |
79 set wildignore=*.vim | |
80 call assert_equal('', expand('test_expand_func.vim')) | |
81 call assert_equal('', expand('test_expand_func.vim', 0)) | |
82 call assert_equal([], expand('test_expand_func.vim', 0, 1)) | |
83 call assert_equal('test_expand_func.vim', expand('test_expand_func.vim', 1)) | |
84 call assert_equal(['test_expand_func.vim'], | |
85 \ expand('test_expand_func.vim', 1, 1)) | |
86 set wildignore& | |
87 endfunc | |
88 | |
89 " vim: shiftwidth=2 sts=2 expandtab |