diff src/testdir/test_functions.vim @ 30761:c9b31c8eb3b3 v9.0.0715

patch 9.0.0715: wrong argument for append() gives two error messages Commit: https://github.com/vim/vim/commit/801cd35e7e3b21e519e12a1610ee1d721e40893e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 10 16:08:16 2022 +0100 patch 9.0.0715: wrong argument for append() gives two error messages Problem: Wrong argument for append() gives two error messages. Solution: When getting an error for a number argument don't try using it as a string. (closes #11335)
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Oct 2022 17:15:07 +0200
parents a7a9e8b9af89
children a09404dad917
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -950,6 +950,8 @@ func Test_append()
 
   " Using $ instead of '$' must give an error
   call assert_fails("call append($, 'foobar')", 'E116:')
+
+  call assert_fails("call append({}, '')", ['E728:', 'E728:'])
 endfunc
 
 " Test for setline()