Mercurial > vim
comparison src/testdir/test_autocmd.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 | ff21e2962490 |
children | 170077e26bde |
comparison
equal
deleted
inserted
replaced
22374:e9b3a8c9ae2c | 22375:595ea7f099cd |
---|---|
2518 augroup! Test | 2518 augroup! Test |
2519 " Execute all autocmds | 2519 " Execute all autocmds |
2520 call assert_fails('doautocmd * BufEnter', 'E217:') | 2520 call assert_fails('doautocmd * BufEnter', 'E217:') |
2521 call assert_fails('augroup! x1a2b3', 'E367:') | 2521 call assert_fails('augroup! x1a2b3', 'E367:') |
2522 call assert_fails('autocmd BufNew <buffer=999> pwd', 'E680:') | 2522 call assert_fails('autocmd BufNew <buffer=999> pwd', 'E680:') |
2523 call assert_fails('autocmd BufNew \) set ff=unix', 'E55:') | |
2523 endfunc | 2524 endfunc |
2524 | 2525 |
2525 " Test for deep nesting of autocmds | 2526 " Test for deep nesting of autocmds |
2526 func Test_autocmd_deep_nesting() | 2527 func Test_autocmd_deep_nesting() |
2527 autocmd BufEnter Xfile doautocmd BufEnter Xfile | 2528 autocmd BufEnter Xfile doautocmd BufEnter Xfile |