Mercurial > vim
view src/testdir/test_fnameescape.vim @ 14571:44df6e5c17c3 v8.1.0299
patch 8.1.0299: misplaced comment
commit https://github.com/vim/vim/commit/142ae736d984f4575c1c6ec1a4f679ae4ddf9413
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 19 17:04:01 2018 +0200
patch 8.1.0299: misplaced comment
Problem: misplaced comment
Solution: Remove comment
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Aug 2018 17:15:05 +0200 |
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