Mercurial > vim
comparison src/testdir/shared.vim @ 21190:10eb6c38938c v8.2.1146
patch 8.2.1146: not enough testing for Python
Commit: https://github.com/vim/vim/commit/ab5894638413748fcedfe28691e6c27893924520
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 6 21:03:06 2020 +0200
patch 8.2.1146: not enough testing for Python
Problem: Not enough testing for Python.
Solution: Add more tests. Fix uncovered problems. (Yegappan Lakshmanan,
closes #6392)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Jul 2020 21:15:05 +0200 |
parents | cae01dabd78e |
children | d265b908c802 |
comparison
equal
deleted
inserted
replaced
21189:86a6df062aea | 21190:10eb6c38938c |
---|---|
351 return msg_list[1:] | 351 return msg_list[1:] |
352 endif | 352 endif |
353 return msg_list | 353 return msg_list |
354 endfunc | 354 endfunc |
355 | 355 |
356 " Run the list of commands in 'cmds' and look for 'errstr' in exception. | |
357 " Note that assert_fails() cannot be used in some places and this function | |
358 " can be used. | |
359 func AssertException(cmds, errstr) | |
360 let save_exception = '' | |
361 try | |
362 for cmd in a:cmds | |
363 exe cmd | |
364 endfor | |
365 catch | |
366 let save_exception = v:exception | |
367 endtry | |
368 call assert_match(a:errstr, save_exception) | |
369 endfunc | |
370 | |
356 " vim: shiftwidth=2 sts=2 expandtab | 371 " vim: shiftwidth=2 sts=2 expandtab |