diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-09-09 20:45:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-09 20:45:34 +0200 |
commit | d176ca3dde47c11aae0376c31b7e1ba0939c8c6c (patch) | |
tree | 5c76b8982fc809880de44d0584a26cb57c4820af /src/testdir/test_startup.vim | |
parent | 6b9efdde7828b3317b64f38bd90fb5a784a654c0 (diff) |
patch 8.2.3421: a bit of code is not covered by testsv8.2.3421
Problem: A bit of code is not covered by tests.
Solution: Add a few more test cases. (Dominique Pellé, closes #8857)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 9872f0b4f5..6b64adf748 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -617,7 +617,7 @@ func Test_invalid_args() call assert_equal('More info with: "vim -h"', out[2]) 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) @@ -863,7 +863,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 |