aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_clientserver.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-15 11:14:22 +0800
committerGitHub <noreply@github.com>2022-07-15 11:14:22 +0800
commit9777907467b29e890556db287b6a9995c0024896 (patch)
treed57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_clientserver.vim
parent73f96ce4c638179abb0bd5a9dc48a6a1d0f3a5bd (diff)
parent465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (diff)
downloadrneovim-9777907467b29e890556db287b6a9995c0024896.tar.gz
rneovim-9777907467b29e890556db287b6a9995c0024896.tar.bz2
rneovim-9777907467b29e890556db287b6a9995c0024896.zip
Merge pull request #19369 from zeertzjq/vim-8.2.0482
vim-patch:8.2.{0430,0482}: insufficient tests
Diffstat (limited to 'src/nvim/testdir/test_clientserver.vim')
-rw-r--r--src/nvim/testdir/test_clientserver.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_clientserver.vim b/src/nvim/testdir/test_clientserver.vim
index 922803438f..db62fe5fa6 100644
--- a/src/nvim/testdir/test_clientserver.vim
+++ b/src/nvim/testdir/test_clientserver.vim
@@ -39,6 +39,8 @@ func Test_client_server()
call remote_send(name, ":let testvar = 'yes'\<CR>")
call WaitFor('remote_expr("' . name . '", "exists(\"testvar\") ? testvar : \"\"", "", 1) == "yes"')
call assert_equal('yes', remote_expr(name, "testvar", "", 2))
+ call assert_fails("let x=remote_expr(name, '2+x')", 'E449:')
+ call assert_fails("let x=remote_expr('[], '2+2')", 'E116:')
if has('unix') && has('gui') && !has('gui_running')
" Running in a terminal and the GUI is available: Tell the server to open
@@ -75,6 +77,7 @@ func Test_client_server()
eval 'MYSELF'->remote_startserver()
" May get MYSELF1 when running the test again.
call assert_match('MYSELF', v:servername)
+ call assert_fails("call remote_startserver('MYSELF')", 'E941:')
endif
let g:testvar = 'myself'
call assert_equal('myself', remote_expr(v:servername, 'testvar'))
@@ -107,7 +110,12 @@ func Test_client_server()
call job_stop(job, 'kill')
endif
endtry
+
+ call assert_fails("let x=remote_peek([])", 'E730:')
+ call assert_fails("let x=remote_read('vim10')", 'E277:')
endfunc
" Uncomment this line to get a debugging log
" call ch_logfile('channellog', 'w')
+
+" vim: shiftwidth=2 sts=2 expandtab