0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4296: Vim9: not all code covered by tests

Problem:    Vim9: not all code covered by tests.
Solution:   Add a few more tests for corner cases.  Fix hang when single quote
            is missing.
This commit is contained in:
Bram Moolenaar
2022-02-04 21:17:58 +00:00
parent 3e79c97c18
commit 83d0cec956
5 changed files with 13 additions and 2 deletions

View File

@@ -1993,6 +1993,12 @@ def Test_unlet()
assert_false(exists('s:somevar'))
unlet! s:somevar
if 0
unlet g:does_not_exist
endif
v9.CheckDefExecFailure(['unlet v:notfound.key'], 'E1001:')
v9.CheckDefExecFailure([
'var dd = 111',
'unlet dd',