mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1358: Vim9: test fails with +dnd is not available
Problem: Vim9: test fails with +dnd is not available. Solution: Add condition.
This commit is contained in:
@@ -470,7 +470,12 @@ def Test_assignment_failure()
|
||||
call CheckDefFailure(['let $VAR = 5'], 'E1016: Cannot declare an environment variable:')
|
||||
call CheckScriptFailure(['vim9script', 'let $ENV = "xxx"'], 'E1016:')
|
||||
|
||||
if has('dnd')
|
||||
call CheckDefFailure(['let @~ = 5'], 'E1066:')
|
||||
else
|
||||
call CheckDefFailure(['let @~ = 5'], 'E354:')
|
||||
call CheckDefFailure(['@~ = 5'], 'E354:')
|
||||
endif
|
||||
call CheckDefFailure(['let @a = 5'], 'E1066:')
|
||||
call CheckDefFailure(['let @/ = "x"'], 'E1066:')
|
||||
call CheckScriptFailure(['vim9script', 'let @a = "abc"'], 'E1066:')
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1358,
|
||||
/**/
|
||||
1357,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user