Mercurial > vim
comparison src/testdir/test_vim9_import.vim @ 28162:6e431b1c51d5 v8.2.4606
patch 8.2.4606: test fails because of changed error message
Commit: https://github.com/vim/vim/commit/e18acb02bb58b2e07f3a52ce619752ba39c05ea2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 21 20:40:35 2022 +0000
patch 8.2.4606: test fails because of changed error message
Problem: Test fails because of changed error message.
Solution: Update the expected error message
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Mar 2022 21:45:03 +0100 |
parents | 292a6bd86c30 |
children | 4b322951ebac |
comparison
equal
deleted
inserted
replaced
28161:acfb2cedbe8d | 28162:6e431b1c51d5 |
---|---|
2154 enddef | 2154 enddef |
2155 | 2155 |
2156 export var Func = 'asdf' | 2156 export var Func = 'asdf' |
2157 END | 2157 END |
2158 writefile(lines, 'Xdir/autoload/dup3func.vim') | 2158 writefile(lines, 'Xdir/autoload/dup3func.vim') |
2159 assert_fails('source Xdir/autoload/dup3func.vim', 'E1041: Redefining script item Func') | 2159 assert_fails('source Xdir/autoload/dup3func.vim', 'E1041: Redefining script item: "Func"') |
2160 | 2160 |
2161 lines =<< trim END | 2161 lines =<< trim END |
2162 vim9script | 2162 vim9script |
2163 | 2163 |
2164 export var Func = 'asdf' | 2164 export var Func = 'asdf' |
2187 enddef | 2187 enddef |
2188 | 2188 |
2189 var Func = 'asdf' | 2189 var Func = 'asdf' |
2190 END | 2190 END |
2191 writefile(lines, 'Xdir/autoload/dup6func.vim') | 2191 writefile(lines, 'Xdir/autoload/dup6func.vim') |
2192 assert_fails('source Xdir/autoload/dup6func.vim', 'E1041: Redefining script item Func') | 2192 assert_fails('source Xdir/autoload/dup6func.vim', 'E1041: Redefining script item: "Func"') |
2193 | 2193 |
2194 delete('Xdir', 'rf') | 2194 delete('Xdir', 'rf') |
2195 enddef | 2195 enddef |
2196 | 2196 |
2197 def Test_autoload_missing_function_name() | 2197 def Test_autoload_missing_function_name() |