Mercurial > vim
diff src/testdir/test_channel.vim @ 9587:05a56bbe34a1 v7.4.2071
commit https://github.com/vim/vim/commit/f562e72df726c6191fa305e1c0a113f1cfb87f76
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 19 17:25:25 2016 +0200
patch 7.4.2071
Problem: The return value of type() is difficult to use.
Solution: Define v:t_ constants. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Jul 2016 17:30:06 +0200 |
parents | e8b3db8e2d30 |
children | 81ba6e4eb72b |
line wrap: on
line diff
--- 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.