mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.4601: Vim9: not enough test coverage for executing :def function
Problem: Vim9: not enough test coverage for executing :def function. Solution: Add a few more tests.
This commit is contained in:
@@ -1660,6 +1660,8 @@ def Test_substitute_expr()
|
||||
v9.CheckDefFailure(['s/from/\="x")/'], 'E488:')
|
||||
v9.CheckDefFailure(['s/from/\="x"/9'], 'E488:')
|
||||
|
||||
v9.CheckDefExecFailure(['s/this/\="that"/'], 'E486:')
|
||||
|
||||
# When calling a function the right instruction list needs to be restored.
|
||||
g:cond = true
|
||||
var lines =<< trim END
|
||||
|
||||
Reference in New Issue
Block a user