Mercurial > vim
view src/testdir/test69.ok @ 16617:24233eeaadd0 v8.1.1311
patch 8.1.1311: aborting an autocmd with an exception is not tested
commit https://github.com/vim/vim/commit/23b5139234a79567097ca73aba15ea134381b934
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 9 21:38:43 2019 +0200
patch 8.1.1311: aborting an autocmd with an exception is not tested
Problem: Aborting an autocmd with an exception is not tested.
Solution: Add a test. Also shows how to abort a command by throwing an
exception.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 May 2019 21:45:05 +0200 |
parents | 238f5027830c |
children | 1090d6637cfd |
line wrap: on
line source
Results of test69: { XYZ abc XYZ XYZ abc XYZ } { X X a X a X Y X Y X X a X a X Y X Y } { X X a X a X Y X Y a X ab X abc X ab X c ab X Y X X a X a X Y X Y a X ab X abc X ab X c ab X Y } { X X a X X a } { X X a X X a } { X Xa Xa XY XY XY XZ X Y X Y X Z XX XXa XXY X Xa Xa XY XY XY XZ X Y X Y X Z XX XXa XXY } { X a } { four } ra test aaaa aaa áx byteidx [0, 1, 3, 4, -1] [0, 1, 4, 5, -1] byteidxcomp [0, 1, 3, 4, -1] [0, 1, 2, 4, 5, -1] substitute a1a2a3a