diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-22 22:09:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-22 22:09:53 +0800 |
| commit | baaaa1f2b3b6ae3a989d1362a27e55dc7b0b148a (patch) | |
| tree | e95acb31f5006385393ad8fdfe90345b1b150828 /src/nvim/testdir/test_startup.vim | |
| parent | 15a768eeb02e2af39eead1ea1eb4a5a60710d6fb (diff) | |
| download | rneovim-baaaa1f2b3b6ae3a989d1362a27e55dc7b0b148a.tar.gz rneovim-baaaa1f2b3b6ae3a989d1362a27e55dc7b0b148a.tar.bz2 rneovim-baaaa1f2b3b6ae3a989d1362a27e55dc7b0b148a.zip | |
vim-patch:8.2.3421: a bit of code is not covered by tests (#19895)
Problem: A bit of code is not covered by tests.
Solution: Add a few more test cases. (Dominique Pellé, closes vim/vim#8857)
https://github.com/vim/vim/commit/d176ca3dde47c11aae0376c31b7e1ba0939c8c6c
Cherry-pick Test_trim() change from patch 8.2.0448.
Cherry-pick Test_History() change from patch 8.2.1736.
Cherry-pick charidx() and trim() type checks from patch 8.2.3135.
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
| -rw-r--r-- | src/nvim/testdir/test_startup.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index 39fafbf7b4..880ca62685 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -603,7 +603,7 @@ func Test_invalid_args() call assert_equal(0, v:shell_error) if has('quickfix') - " Detect invalid repeated arguments '-t foo -t foo", '-q foo -q foo'. + " Detect invalid repeated arguments '-t foo -t foo', '-q foo -q foo'. for opt in ['-t', '-q'] let out = split(system(GetVimCommand() .. repeat(' ' .. opt .. ' foo', 2)), "\n") call assert_equal(1, v:shell_error) @@ -855,7 +855,7 @@ func Test_t_arg() call writefile([' first', ' second', ' third'], 'Xfile1') for t_arg in ['-t second', '-tsecond'] - if RunVim(before, after, '-t second') + if RunVim(before, after, t_arg) call assert_equal(['Xfile1:L2C5'], readfile('Xtestout'), t_arg) call delete('Xtestout') endif |