Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 28154:ae975c8d5438 v8.2.4601
patch 8.2.4601: Vim9: not enough test coverage for executing :def function
Commit: https://github.com/vim/vim/commit/efd73ae5d2a533670f562b6df5be2ffeb091185d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 20 18:51:00 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Mar 2022 20:00:03 +0100 |
parents | b96409b84eaf |
children | 49631bf057d3 |
comparison
equal
deleted
inserted
replaced
28153:2474382f4e7a | 28154:ae975c8d5438 |
---|---|
1658 bwipe! | 1658 bwipe! |
1659 | 1659 |
1660 v9.CheckDefFailure(['s/from/\="x")/'], 'E488:') | 1660 v9.CheckDefFailure(['s/from/\="x")/'], 'E488:') |
1661 v9.CheckDefFailure(['s/from/\="x"/9'], 'E488:') | 1661 v9.CheckDefFailure(['s/from/\="x"/9'], 'E488:') |
1662 | 1662 |
1663 v9.CheckDefExecFailure(['s/this/\="that"/'], 'E486:') | |
1664 | |
1663 # When calling a function the right instruction list needs to be restored. | 1665 # When calling a function the right instruction list needs to be restored. |
1664 g:cond = true | 1666 g:cond = true |
1665 var lines =<< trim END | 1667 var lines =<< trim END |
1666 vim9script | 1668 vim9script |
1667 def Foo() | 1669 def Foo() |