summaryrefslogtreecommitdiff
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-19 17:25:25 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-19 17:25:25 +0200
commitf562e72df726c6191fa305e1c0a113f1cfb87f76 (patch)
tree038e6b9d3688a74c953f17a6eef509389b469163 /src/testdir/test_channel.vim
parent6cfdb2a3bad5a6049de22dcdd1da0f6666478398 (diff)
downloadvim-f562e72df726c6191fa305e1c0a113f1cfb87f76.zip
patch 7.4.2071
Problem: The return value of type() is difficult to use. Solution: Define v:t_ constants. (Ken Takata)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index ea7abd4b3..af9060a78 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -188,6 +188,7 @@ endfunc
" Test that we can open two channels.
func Ch_two_channels(port)
let handle = ch_open('localhost:' . a:port, s:chopt)
+ call assert_equal(v:t_channel, type(handle))
if ch_status(handle) == "fail"
call assert_false(1, "Can't open channel")
return
@@ -420,6 +421,7 @@ func Test_raw_pipe()
endif
call ch_log('Test_raw_pipe()')
let job = job_start(s:python . " test_channel_pipe.py", {'mode': 'raw'})
+ call assert_equal(v:t_job, type(job))
call assert_equal("run", job_status(job))
try
" For a change use the job where a channel is expected.