Mercurial > vim
view src/testdir/test_fnameescape.vim @ 13317:64be34986f54
Added tag v8.0.1532 for changeset de19318319a6464d76633c2e7e7e5fa101c64361
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 23 Feb 2018 18:30:07 +0100 |
parents | eb9a7296ae9f |
children | 63b02fcf1361 |
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