" Test escaping special cmdline characters. call vimtest#StartTap() call vimtap#Plan(7) call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('foo'), 'foo', 'string without special characters is returned as-is') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('%'), '\%', 'standalone % gets escaped') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('this # and ##'), 'this \# and \#\#', '# and ## within a string get escaped') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('.txt'), '\.txt', ' gets escaped') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape(''), '\', ' gets escaped') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('foo/bar and foo\bar'), 'foo/bar and foo\bar', 'string without special characters but spaces and slashes is returned as-is') call vimtap#Is(ingo#escape#file#CmdlineSpecialEscape('\% and % or \'), '\% and \% or \', 'already escaped stuff does not get escaped') call vimtest#Quit()