mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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:
@@ -1359,7 +1359,8 @@ def Test_assignment_failure()
|
||||
v9.CheckDefFailure(['var null = 1'], 'E1034:')
|
||||
v9.CheckDefFailure(['var this = 1'], 'E1034:')
|
||||
|
||||
v9.CheckDefFailure(['[a; b; c] = g:list'], 'E452:')
|
||||
v9.CheckDefFailure(['[a; b; c] = g:list'], 'E1001:')
|
||||
v9.CheckDefFailure(['var [a; b; c] = g:list'], 'E1080:')
|
||||
v9.CheckDefExecFailure(['var a: number',
|
||||
'[a] = test_null_list()'], 'E1093:')
|
||||
v9.CheckDefExecFailure(['var a: number',
|
||||
|
Reference in New Issue
Block a user