Mercurial > vim
diff src/testdir/test_user_func.vim @ 24695:13efbfc53054 v8.2.2886
patch 8.2.2886: various pieces of code not covered by tests
Commit: https://github.com/vim/vim/commit/34fcb697240c1bc9e69417ed75db3b1a83479724
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue May 25 20:14:00 2021 +0200
patch 8.2.2886: various pieces of code not covered by tests
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8255)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 May 2021 20:15:03 +0200 |
parents | 04205b7d67d5 |
children | b916d59f259f |
line wrap: on
line diff
--- a/src/testdir/test_user_func.vim +++ b/src/testdir/test_user_func.vim @@ -160,6 +160,16 @@ func Test_default_arg() \ .. "1 return deepcopy(a:)\n" \ .. " endfunction", \ execute('func Args2')) + + " Error in default argument expression + let l =<< trim END + func F1(x = y) + return a:x * 2 + endfunc + echo F1() + END + let @a = l->join("\n") + call assert_fails("exe @a", 'E121:') endfunc func s:addFoo(lead)