Mercurial > vim
view src/testdir/test_fnameescape.vim @ 10072:c104f09ae2f4 v7.4.2307
commit https://github.com/vim/vim/commit/cd055da370114f66c960be9c8b1eb0f33a9e0a85
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 2 19:50:48 2016 +0200
patch 7.4.2307
Problem: Several tests are old style.
Solution: Turn them into new style tests. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Sep 2016 20:00:09 +0200 |
parents | |
children | eb9a7296ae9f |
line wrap: on
line source
" Test if fnameescape is correct for special chars like ! function! Test_fnameescape() let fname = 'Xspa ce' let status = v:false try exe "w! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "Space") call delete(fname) let fname = 'Xemark!' let status = v:false try exe "w! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunction