Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 27762:3196066c5795 v8.2.4407
patch 8.2.4407: Vim9: some code not covered by tests
Commit: https://github.com/vim/vim/commit/e08be09a08485e8c919f46c05223c1ccfdaf175d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 17 13:08:26 2022 +0000
patch 8.2.4407: Vim9: some code not covered by tests
Problem: Vim9: some code not covered by tests.
Solution: Add more tests. Avoid giving two errors. Remove dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Feb 2022 14:15:04 +0100 |
parents | 60ac4228a73d |
children | 324d394e314e |
comparison
equal
deleted
inserted
replaced
27761:a5c8bf8758c7 | 27762:3196066c5795 |
---|---|
906 def +Func+ | 906 def +Func+ |
907 enddef | 907 enddef |
908 defcompile | 908 defcompile |
909 END | 909 END |
910 v9.CheckScriptFailure(lines, 'E476:', 1) | 910 v9.CheckScriptFailure(lines, 'E476:', 1) |
911 enddef | |
912 | |
913 def Test_global_function_not_found() | |
914 var lines =<< trim END | |
915 g:Ref = 123 | |
916 call g:Ref() | |
917 END | |
918 v9.CheckDefExecAndScriptFailure(lines, ['E117:', 'E1085:'], 2) | |
911 enddef | 919 enddef |
912 | 920 |
913 def Test_global_local_function() | 921 def Test_global_local_function() |
914 var lines =<< trim END | 922 var lines =<< trim END |
915 vim9script | 923 vim9script |