Mercurial > vim
comparison src/testdir/test_buffer.vim @ 22375:595ea7f099cd v8.2.1736
patch 8.2.1736: failure to compile a pattern not tested much
Commit: https://github.com/vim/vim/commit/531be47ac5522807b265c6287021a01c9b895ac9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 23 22:38:05 2020 +0200
patch 8.2.1736: failure to compile a pattern not tested much
Problem: Failure to compile a pattern not tested much.
Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan,
closes #7004)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Sep 2020 22:45:06 +0200 |
parents | e4449560f18d |
children | 9ff187b1652e |
comparison
equal
deleted
inserted
replaced
22374:e9b3a8c9ae2c | 22375:595ea7f099cd |
---|---|
136 " Test for :bdelete | 136 " Test for :bdelete |
137 func Test_bdelete_cmd() | 137 func Test_bdelete_cmd() |
138 %bwipe! | 138 %bwipe! |
139 call assert_fails('bdelete 5', 'E516:') | 139 call assert_fails('bdelete 5', 'E516:') |
140 call assert_fails('1,1bdelete 1 2', 'E488:') | 140 call assert_fails('1,1bdelete 1 2', 'E488:') |
141 call assert_fails('bdelete \)', 'E55:') | |
141 | 142 |
142 " Deleting a unlisted and unloaded buffer | 143 " Deleting a unlisted and unloaded buffer |
143 edit Xfile1 | 144 edit Xfile1 |
144 let bnr = bufnr() | 145 let bnr = bufnr() |
145 set nobuflisted | 146 set nobuflisted |