Mercurial > vim
view src/testdir/test_exists_autocmd.vim @ 17379:27abe2b6a094 v8.1.1688
patch 8.1.1688: old makefiles are no longer useful
commit https://github.com/vim/vim/commit/1850b14c0d338eb27fb32d0d6e0bfb6944c75c5a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 14 15:09:59 2019 +0200
patch 8.1.1688: old makefiles are no longer useful
Problem: Old makefiles are no longer useful.
Solution: Delete the makefiles, they most likely don't work anyway.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jul 2019 15:15:04 +0200 |
parents | 140d51d5b5c3 |
children | 08940efa6b4e |
line wrap: on
line source
" Test that groups and patterns are tested correctly when calling exists() for " autocommands. function Test_AutoCommands() let results=[] augroup auexists augroup END call assert_true(exists("##BufEnter")) call assert_false(exists("#BufEnter")) au BufEnter * let g:entered=1 call assert_true(exists("#BufEnter")) call assert_false(exists("#auexists#BufEnter")) augroup auexists au BufEnter * let g:entered=1 augroup END call assert_true(exists("#auexists#BufEnter")) call assert_false(exists("#BufEnter#*.test")) au BufEnter *.test let g:entered=1 call assert_true(exists("#BufEnter#*.test")) edit testfile.test call assert_false(exists("#BufEnter#<buffer>")) au BufEnter <buffer> let g:entered=1 call assert_true(exists("#BufEnter#<buffer>")) edit testfile2.test call assert_false(exists("#BufEnter#<buffer>")) endfunction