comparison src/testdir/test_tagjump.vim @ 21265:6a4806e326dd v8.2.1183

patch 8.2.1183: assert_fails() checks the last error message Commit: https://github.com/vim/vim/commit/9b7bf9e98f06ece595fed7a3ff53ecce89797a53 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 11 22:14:59 2020 +0200 patch 8.2.1183: assert_fails() checks the last error message Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Jul 2020 22:30:07 +0200
parents 6c634e63989c
children 08940efa6b4e
comparison
equal deleted inserted replaced
21264:f3bdfe1d9359 21265:6a4806e326dd
6 " SEGV occurs in older versions. (At least 7.4.1748 or older) 6 " SEGV occurs in older versions. (At least 7.4.1748 or older)
7 func Test_ptag_with_notagstack() 7 func Test_ptag_with_notagstack()
8 CheckFeature quickfix 8 CheckFeature quickfix
9 9
10 set notagstack 10 set notagstack
11 call assert_fails('ptag does_not_exist_tag_name', 'E426') 11 call assert_fails('ptag does_not_exist_tag_name', 'E433')
12 set tagstack&vim 12 set tagstack&vim
13 endfunc 13 endfunc
14 14
15 func Test_ptjump() 15 func Test_ptjump()
16 CheckFeature quickfix 16 CheckFeature quickfix
343 call writefile([ 343 call writefile([
344 \ "\x0c", 344 \ "\x0c",
345 \ "Xmain.c,64", 345 \ "Xmain.c,64",
346 \ ";;;;\x7f1,0", 346 \ ";;;;\x7f1,0",
347 \ ], 'Xtags') 347 \ ], 'Xtags')
348 call assert_fails('tag foo', 'E426:') 348 call assert_fails('tag foo', 'E431:')
349 349
350 call delete('Xtags') 350 call delete('Xtags')
351 call delete('Xtags2') 351 call delete('Xtags2')
352 call delete('Xmain.c') 352 call delete('Xmain.c')
353 set tags& 353 set tags&