diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-20 18:20:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-20 18:20:51 +0100 |
commit | 8b633135106dda8605463b780573c45b00c22afe (patch) | |
tree | 522098c1530def5515e3647660108ced67d7b258 /src/testdir/test_channel.vim | |
parent | 98be7fecac80b30c5a323b67903eb1d0094007ea (diff) |
patch 8.2.0418: code in eval.c not sufficiently covered by testsv8.2.0418
Problem: Code in eval.c not sufficiently covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5815)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index abc27d5eb2..8fa67ef657 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -518,6 +518,15 @@ func Test_raw_pipe() endif endfor call assert_equal(1, found) + + " Try to use the job and channel where a number is expected. This is not + " related to testing the raw pipe. This test is here just to reuse the + " already created job/channel. + let ch = job_getchannel(job) + call assert_fails('let i = job + 1', 'E910:') + call assert_fails('let j = ch + 1', 'E913:') + call assert_fails('echo 2.0 == job', 'E911:') + call assert_fails('echo 2.0 == ch', 'E914:') endfunc func Test_raw_pipe_blob() @@ -2025,3 +2034,5 @@ func Test_issue_5485() call WaitForAssert({-> assert_equal("local local", trim(g:Ch_reply))}) unlet $VAR1 endfunc + +" vim: shiftwidth=2 sts=2 expandtab |