Mercurial > vim
comparison src/testdir/test_vim9_script.vim @ 22387:36f13f35bd78 v8.2.1742
patch 8.2.1742: test still fails without the terminal feature
Commit: https://github.com/vim/vim/commit/7e9210ea5320e0c3fd9fd93e3f3f1a59e029cf46
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 25 23:12:51 2020 +0200
patch 8.2.1742: test still fails without the terminal feature
Problem: Test still fails without the terminal feature.
Solution: Put check for terminal feature in separate function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Sep 2020 23:15:03 +0200 |
parents | 82d92f6c756c |
children | a9fb7efa31d6 |
comparison
equal
deleted
inserted
replaced
22386:21d63dec6f6a | 22387:36f13f35bd78 |
---|---|
2829 assert_equal(0, var) | 2829 assert_equal(0, var) |
2830 END | 2830 END |
2831 CheckDefAndScriptSuccess(lines) | 2831 CheckDefAndScriptSuccess(lines) |
2832 enddef | 2832 enddef |
2833 | 2833 |
2834 def Test_define_func_at_command_line() | 2834 func Test_define_func_at_command_line() |
2835 CheckRunVimInTerminal | 2835 CheckRunVimInTerminal |
2836 | 2836 |
2837 " call indirectly to avoid compilation error for missing functions | |
2838 call Run_Test_define_func_at_command_line() | |
2839 endfunc | |
2840 | |
2841 def Run_Test_define_func_at_command_line() | |
2837 # run in a separate Vim instance to avoid the script context | 2842 # run in a separate Vim instance to avoid the script context |
2838 let lines =<< trim END | 2843 let lines =<< trim END |
2839 func CheckAndQuit() | 2844 func CheckAndQuit() |
2840 call assert_fails('call Afunc()', 'E117: Unknown function: Bfunc') | 2845 call assert_fails('call Afunc()', 'E117: Unknown function: Bfunc') |
2841 call writefile(['errors: ' .. string(v:errors)], 'Xdidcmd') | 2846 call writefile(['errors: ' .. string(v:errors)], 'Xdidcmd') |