Mercurial > vim
view src/testdir/test_fnameescape.vim @ 18220:8b45fb2c75d9
Added tag v8.1.2104 for changeset 5d67f207f7c3bff09e181379c1b1f2bb9f7803e5
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 Sep 2019 23:15:04 +0200 |
parents | 73ddc462979d |
children | b8fd7364befd |
line wrap: on
line source
" Test if fnameescape is correct for special chars like ! func 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! " . fname->fnameescape() let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunc