Mercurial > vim
comparison src/testdir/test_excmd.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 | 0016cba920ef |
children | a7098bc3810e |
comparison
equal
deleted
inserted
replaced
21264:f3bdfe1d9359 | 21265:6a4806e326dd |
---|---|
333 func Test_redir_cmd() | 333 func Test_redir_cmd() |
334 call assert_fails('redir @@', 'E475:') | 334 call assert_fails('redir @@', 'E475:') |
335 call assert_fails('redir abc', 'E475:') | 335 call assert_fails('redir abc', 'E475:') |
336 call assert_fails('redir => 1abc', 'E474:') | 336 call assert_fails('redir => 1abc', 'E474:') |
337 call assert_fails('redir => a b', 'E488:') | 337 call assert_fails('redir => a b', 'E488:') |
338 call assert_fails('redir => abc[1]', 'E474:') | 338 call assert_fails('redir => abc[1]', 'E121:') |
339 let b=0zFF | 339 let b = 0zFF |
340 call assert_fails('redir =>> b', 'E734:') | 340 call assert_fails('redir =>> b', 'E734:') |
341 unlet b | 341 unlet b |
342 | 342 |
343 if has('unix') | 343 if has('unix') |
344 " Redirecting to a directory name | 344 " Redirecting to a directory name |