diff src/testdir/test_terminal.vim @ 32355:d202ddc6178f v9.0.1509

patch 9.0.1509: error message lacks mentioning the erroneous argument Commit: https://github.com/vim/vim/commit/23919540367952f7fbb06350d7b5af96316fbd5f Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 5 22:12:22 2023 +0100 patch 9.0.1509: error message lacks mentioning the erroneous argument Problem: Error message lacks mentioning the erroneous argument. Solution: Specify the argument that the error is for.
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 May 2023 23:15:04 +0200
parents c8ebe35b2475
children b1dcb60b1e6c
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2188,6 +2188,7 @@ func Test_terminal_ansicolors_func()
   let colors[4] = 'Invalid'
   call assert_fails('call term_setansicolors(buf, colors)', 'E254:')
   call assert_fails('call term_setansicolors(buf, {})', 'E1211:')
+  call assert_fails('call term_setansicolors(buf, [])', 'E475: Invalid value for argument "colors"')
   set tgc&
 
   call StopShellInTerminal(buf)