Mercurial > vim
changeset 23162:c923f1888a77 v8.2.2127
patch 8.2.2127: Vim9: executing user command from Vim9 script not tested
Commit: https://github.com/vim/vim/commit/70249ee831df357c1a5475473fc84c40d101a67d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 10 21:01:30 2020 +0100
patch 8.2.2127: Vim9: executing user command from Vim9 script not tested
Problem: Vim9: executing user command defined in Vim9 script not tested.
Solution: Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Dec 2020 21:15:04 +0100 |
parents | b916b68741e3 |
children | ab4a692918ec |
files | src/testdir/test_vim9_script.vim src/version.c |
diffstat | 2 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -2381,6 +2381,27 @@ def Test_vim9_comment() 'Echo', ], 'E121:') delcommand Echo + + var curdir = getcwd() + CheckScriptSuccess([ + 'command Echo cd " comment', + 'Echo', + 'delcommand Echo', + ]) + CheckScriptSuccess([ + 'vim9script' + 'command Echo cd # comment', + 'Echo', + 'delcommand Echo', + ]) + CheckScriptFailure([ + 'vim9script', + 'command Echo cd " comment', + 'Echo', + ], 'E344:') + delcommand Echo + chdir(curdir) + CheckScriptFailure([ 'vim9script', 'command Echo# comment',