Mercurial > vim
diff src/testdir/test_terminal3.vim @ 23984:e27b5529dc6a v8.2.2534
patch 8.2.2534: missing test coverage
Commit: https://github.com/vim/vim/commit/a1070eae77f635f08b6f2612726b905796baaa58
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 20 19:21:36 2021 +0100
patch 8.2.2534: missing test coverage
Problem: Missing test coverage.
Solution: Improve test coverage for completion with different encodings,
mapset(), and term function failures. (Dominique Pell?,
closes #7877)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Feb 2021 19:30:03 +0100 |
parents | 24ce202a7d68 |
children | 9257f3980f4a |
line wrap: on
line diff
--- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -301,6 +301,11 @@ func Test_term_func_invalid_arg() call assert_fails('let p = term_getansicolors([])', 'E745:') call assert_fails('call term_setansicolors([], [])', 'E745:') endif + let buf = term_start('echo') + call assert_fails('call term_setapi(' .. buf .. ', {})', 'E731:') + call assert_fails('call term_setkill(' .. buf .. ', {})', 'E731:') + call assert_fails('call term_setrestore(' .. buf .. ', {})', 'E731:') + exe buf . "bwipe!" endfunc " Test for sending various special keycodes to a terminal