Mercurial > vim
view src/testdir/test_fnameescape.vim @ 15567:c9230ee2b1ad v8.1.0791
patch 8.1.0791: a few compiler warnings on VMS
commit https://github.com/vim/vim/commit/563bbeabcce5580e03648e687bd7ddb9626a03d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 22 21:45:40 2019 +0100
patch 8.1.0791: a few compiler warnings on VMS
Problem: A few compiler warnings on VMS.
Solution: Remove type cast. Adjust #ifdef. (Zoltan Arpadffy)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Jan 2019 22:00:05 +0100 |
parents | 63b02fcf1361 |
children | 73ddc462979d |
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! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunc