1
0
forked from aniani/vim

patch 8.2.4395: some code lines not covered by tests

Problem:    Some code lines not covered by tests.
Solution:   Add a few more test cases.  Fix getting more than one error for
            invalid assignment.
This commit is contained in:
Bram Moolenaar
2022-02-15 21:17:56 +00:00
parent 9fdde7992a
commit 8b716f5f22
7 changed files with 38 additions and 5 deletions

View File

@@ -3762,7 +3762,15 @@ def Test_go_beyond_end_of_cmd()
v9.CheckScriptFailure(lines, 'E476:')
enddef
" The following messes up syntax highlight, keep near the end.
if has('python3')
def Test_python3_command()
py3 import vim
py3 vim.command("let g:done = 'yes'")
assert_equal('yes', g:done)
unlet g:done
enddef
def Test_python3_heredoc()
py3 << trim EOF
import vim
@@ -3778,7 +3786,6 @@ if has('python3')
enddef
endif
" This messes up syntax highlight, keep near the end.
if has('lua')
def Test_lua_heredoc()
g:d = {}