Mercurial > vim
changeset 22510:7060df0b8ebf v8.2.1803
patch 8.2.1803: a few failures are not tested
Commit: https://github.com/vim/vim/commit/afe8cf617013fd8c3f0189f1e1fa7a2a6a8f7511
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 5 20:07:18 2020 +0200
patch 8.2.1803: a few failures are not tested
Problem: A few failures are not tested.
Solution: Test a few failures. (Dominique Pell?, closes https://github.com/vim/vim/issues/7075)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Oct 2020 20:15:05 +0200 |
parents | d5615d1eed10 |
children | 1eb50499f3b0 |
files | src/testdir/test_arglist.vim src/testdir/test_cmdline.vim src/testdir/test_json.vim src/testdir/test_listdict.vim src/version.c |
diffstat | 5 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -426,6 +426,7 @@ func Test_argdelete() call assert_fails('argdelete', 'E610:') call assert_fails('1,100argdelete', 'E16:') call assert_fails('argdel /\)/', 'E55:') + call assert_fails('1argdel 1', 'E474:') call Reset_arglist() args a b c d @@ -478,13 +479,16 @@ func Test_arglist_autocmd() new " redefine arglist; go to Xxx1 next! Xxx1 Xxx2 Xxx3 - " open window for all args + " open window for all args; Reading Xxx2 will change the arglist and the + " third window will get Xxx1: + " win 1: Xxx1 + " win 2: Xxx2 + " win 3: Xxx1 all call assert_equal('test file Xxx1', getline(1)) wincmd w wincmd w call assert_equal('test file Xxx1', getline(1)) - " should now be in Xxx2 rewind call assert_equal('test file Xxx2', getline(1))
--- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -756,6 +756,10 @@ func Test_cmdline_complete_various() call feedkeys(":doautocmd User MyCmd a.c\<C-A>\<C-B>\"\<CR>", 'xt') call assert_equal("\"doautocmd User MyCmd a.c\<C-A>", @:) + " completion of autocmd group after comma + call feedkeys(":doautocmd BufNew,BufEn\<C-A>\<C-B>\"\<CR>", 'xt') + call assert_equal("\"doautocmd BufNew,BufEnter", @:) + " completion for the :augroup command augroup XTest augroup END
--- a/src/testdir/test_json.vim +++ b/src/testdir/test_json.vim @@ -196,6 +196,7 @@ func Test_json_decode() call assert_fails('call json_decode("{[]:42}")', "E491:") call assert_fails('call json_decode("-")', "E491:") + call assert_fails('call json_decode("-1x")', "E491:") call assert_fails('call json_decode("infinit")', "E491:") call assert_fails('call json_decode("\"\\u111Z\"")', 'E491:')
--- a/src/testdir/test_listdict.vim +++ b/src/testdir/test_listdict.vim @@ -726,6 +726,8 @@ func Test_reduce() call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E897:') call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E897:') call assert_fails("call reduce('', { acc, val -> acc + val }, 1)", 'E897:') + call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:') + call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 'E39:') let g:lut = [1, 2, 3, 4] func EvilRemove()