Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 29497:9908c07ccb56 v9.0.0090
patch 9.0.0090: no error when assigning bool to a string option
Commit: https://github.com/vim/vim/commit/28f84e17b068daca2635692d279930dcb7a150d0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 27 12:30:13 2022 +0100
patch 9.0.0090: no error when assigning bool to a string option
Problem: No error when assigning bool to a string option with setwinvar().
Solution: Give an error (closes https://github.com/vim/vim/issues/10766)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 27 Jul 2022 13:45:05 +0200 |
parents | a74398c432a4 |
children | bdb31515f78b |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -3719,6 +3719,7 @@ def Test_setwinvar() v9.CheckDefAndScriptFailure(['setwinvar("a", "b", 1)'], ['E1013: Argument 1: type mismatch, expected number but got string', 'E1210: Number required for argument 1']) v9.CheckDefAndScriptFailure(['setwinvar(1, 2, "c")'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2']) assert_fails('setwinvar(1, "", 10)', 'E461: Illegal variable name') + assert_fails('setwinvar(0, "&rulerformat", true)', 'E928:') enddef def Test_sha256()