mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.3858: Vim9: not enough tests
Problem: Vim9: not enough tests. Solution: Add tests for :try/:catch and :redir. Add missing type check.
This commit is contained in:
@@ -1558,6 +1558,23 @@ def Test_redir_to_var()
|
||||
redir END
|
||||
END
|
||||
CheckDefFailure(lines, 'E1141:')
|
||||
|
||||
lines =<< trim END
|
||||
var text: string
|
||||
redir => text
|
||||
echo 'hello'
|
||||
redir > Xfile
|
||||
redir END
|
||||
END
|
||||
CheckDefFailure(lines, 'E1185:')
|
||||
|
||||
lines =<< trim END
|
||||
var text: number
|
||||
redir => text
|
||||
echo 'hello'
|
||||
redir END
|
||||
END
|
||||
CheckDefFailure(lines, 'E1012:')
|
||||
enddef
|
||||
|
||||
def Test_echo_void()
|
||||
|
||||
Reference in New Issue
Block a user