Mercurial > vim
comparison src/testdir/test_user_func.vim @ 21124:8b4b43b5b4c6 v8.2.1113
patch 8.2.1113: no test for verbose output of :call
Commit: https://github.com/vim/vim/commit/a0d072ef8203b225bd46bcd826cb3d2e3c3b941a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 1 20:19:37 2020 +0200
patch 8.2.1113: no test for verbose output of :call
Problem: No test for verbose output of :call.
Solution: Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jul 2020 20:30:05 +0200 |
parents | 9cbe3a4f1492 |
children | ff21e2962490 |
comparison
equal
deleted
inserted
replaced
21123:c707f5c7d8b3 | 21124:8b4b43b5b4c6 |
---|---|
217 delfunc Xtest | 217 delfunc Xtest |
218 | 218 |
219 exe "func Xtest()\necho 'hello'\nendfunc garbage" | 219 exe "func Xtest()\necho 'hello'\nendfunc garbage" |
220 call assert_match('W22:', split(execute('1messages'), "\n")[0]) | 220 call assert_match('W22:', split(execute('1messages'), "\n")[0]) |
221 call assert_true(exists('*Xtest')) | 221 call assert_true(exists('*Xtest')) |
222 delfunc Xtest | |
223 set verbose=0 | |
224 | |
225 func Xtest(a1, a2) | |
226 echo a:a1 .. a:a2 | |
227 endfunc | |
228 set verbose=15 | |
229 redir @a | |
230 call Xtest(123, repeat('x', 100)) | |
231 redir END | |
232 call assert_match('calling Xtest(123, ''xxxxxxx.*x\.\.\.x.*xxxx'')', getreg('a')) | |
222 delfunc Xtest | 233 delfunc Xtest |
223 set verbose=0 | 234 set verbose=0 |
224 | 235 |
225 function Foo() | 236 function Foo() |
226 echo 'hello' | 237 echo 'hello' |