summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-21 22:19:45 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-21 22:19:45 +0200
commitad48e6c1590842ab6d48e6caba3e9250734dae27 (patch)
treec81fe7bc66f2807223cdf76306dccf5b714f3650 /src/testdir/test_channel.vim
parentff06f283e3e4b3ec43012dd3b83f8454c98f6639 (diff)
patch 8.2.0615: regexp benchmark stest is old stylev8.2.0615
Problem: Regexp benchmark stest is old style. Solution: Make it a new style test. Fix using a NULL list. Add more tests. (Yegappan Lakshmanan, closes #5963)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index af809eceb4..cf51a536b5 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -167,6 +167,8 @@ func Ch_communicate(port)
call ch_setoptions(handle, {'drop': 'never'})
call ch_setoptions(handle, {'drop': 'auto'})
call assert_fails("call ch_setoptions(handle, {'drop': 'bad'})", "E475")
+ call assert_equal(0, ch_setoptions(handle, test_null_dict()))
+ call assert_equal(0, ch_setoptions(test_null_channel(), {'drop' : 'never'}))
" Send an eval request that works.
call assert_equal('ok', ch_evalexpr(handle, 'eval-works'))
@@ -1682,6 +1684,7 @@ func Test_job_start_fails()
call assert_fails('let job = job_start("")', 'E474:')
call assert_fails('let job = job_start(" ")', 'E474:')
call assert_fails('let job = job_start(["ls", []])', 'E730:')
+ call assert_fails('call job_setoptions(test_null_job(), {})', 'E916:')
%bw!
endfunc
@@ -2267,6 +2270,7 @@ func Test_invalid_job_chan_options()
for opt in invalid_opts
call assert_fails("let x = ch_status(ch, opt)", 'E475:')
endfor
+ call assert_equal('fail', ch_status(ch, test_null_dict()))
endfunc
" Test for passing the command and the arguments as List on MS-Windows