diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 20:13:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 20:13:39 +0800 |
commit | 451b8d6cb1a3110b8c24d2f4b1966daffbaa3dab (patch) | |
tree | 166fc29dbff622076dd2863b7cc8ba089cc4772c /src/nvim/testdir/test_autocmd.vim | |
parent | 3435cdfb94b6f3c72e7f0f16fef9ff2660377cb2 (diff) | |
parent | 609c0513cac7898782c55f5fb20275733cc566e9 (diff) | |
download | rneovim-451b8d6cb1a3110b8c24d2f4b1966daffbaa3dab.tar.gz rneovim-451b8d6cb1a3110b8c24d2f4b1966daffbaa3dab.tar.bz2 rneovim-451b8d6cb1a3110b8c24d2f4b1966daffbaa3dab.zip |
Merge pull request #20990 from zeertzjq/vim-8.2.2060
vim-patch:8.2.{2060,3626}
Diffstat (limited to 'src/nvim/testdir/test_autocmd.vim')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 1488fe8431..1e9406eb87 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -481,17 +481,20 @@ endfunc func Test_early_bar() " test that a bar is recognized before the {event} call s:AddAnAutocmd() - augroup vimBarTest | au! | augroup END + augroup vimBarTest | au! | let done = 77 | augroup END call assert_equal(1, len(split(execute('au vimBarTest'), "\n"))) + call assert_equal(77, done) call s:AddAnAutocmd() - augroup vimBarTest| au!| augroup END + augroup vimBarTest| au!| let done = 88 | augroup END call assert_equal(1, len(split(execute('au vimBarTest'), "\n"))) + call assert_equal(88, done) " test that a bar is recognized after the {event} call s:AddAnAutocmd() - augroup vimBarTest| au!BufReadCmd| augroup END + augroup vimBarTest| au!BufReadCmd| let done = 99 | augroup END call assert_equal(1, len(split(execute('au vimBarTest'), "\n"))) + call assert_equal(99, done) " test that a bar is recognized after the {group} call s:AddAnAutocmd() @@ -1975,9 +1978,7 @@ func Test_change_mark_in_autocmds() endfunc func Test_Filter_noshelltemp() - if !executable('cat') - return - endif + CheckExecutable cat enew! call setline(1, ['a', 'b', 'c', 'd']) |