Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 22586:622294200ccd v8.2.1841
patch 8.2.1841: Vim9: test for compilation error fails in normal build
Commit: https://github.com/vim/vim/commit/2b9b17ea5daaaa693d0891e9a999d711f0e0f743
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 13 18:38:11 2020 +0200
patch 8.2.1841: Vim9: test for compilation error fails in normal build
Problem: Vim9: test for compilation error fails in normal build.
Solution: Invoke CheckRunVimInTerminal in a separate function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Oct 2020 18:45:05 +0200 |
parents | c271498e03b2 |
children | b5d68d8a5187 |
comparison
equal
deleted
inserted
replaced
22585:8a4b736cbba2 | 22586:622294200ccd |
---|---|
11 return 'yes' | 11 return 'yes' |
12 enddef | 12 enddef |
13 call SomeFunc()->assert_equal('yes') | 13 call SomeFunc()->assert_equal('yes') |
14 endfunc | 14 endfunc |
15 | 15 |
16 def Test_compiling_error() | 16 func Test_compiling_error() |
17 # use a terminal to see the whole error message | 17 " use a terminal to see the whole error message |
18 CheckRunVimInTerminal | 18 CheckRunVimInTerminal |
19 | 19 |
20 call TestCompilingError() | |
21 endfunc | |
22 | |
23 def TestCompilingError() | |
20 var lines =<< trim END | 24 var lines =<< trim END |
21 vim9script | 25 vim9script |
22 def Fails() | 26 def Fails() |
23 echo nothing | 27 echo nothing |
24 enddef | 28 enddef |