mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
oldtests: win: filename cannot have "
This commit is contained in:
parent
eba1ebafe5
commit
5262a1f4b5
@ -17,9 +17,9 @@ func Test_mksession()
|
|||||||
\ ' four leadinG spaces',
|
\ ' four leadinG spaces',
|
||||||
\ 'two consecutive tabs',
|
\ 'two consecutive tabs',
|
||||||
\ 'two tabs in one line',
|
\ 'two tabs in one line',
|
||||||
\ 'one ä multibyteCharacter',
|
\ 'one ä multibyteCharacter',
|
||||||
\ 'aä Ä two multiByte characters',
|
\ 'aä Ä two multiByte characters',
|
||||||
\ 'Aäöü three mulTibyte characters',
|
\ 'Aäöü three mulTibyte characters',
|
||||||
\ 'short line',
|
\ 'short line',
|
||||||
\ ])
|
\ ])
|
||||||
let tmpfile = 'Xtemp'
|
let tmpfile = 'Xtemp'
|
||||||
@ -240,13 +240,14 @@ endfunc
|
|||||||
|
|
||||||
func Test_mksession_quote_in_filename()
|
func Test_mksession_quote_in_filename()
|
||||||
let v:errmsg = ''
|
let v:errmsg = ''
|
||||||
|
let filename = has('win32') ? 'x''y' : 'x''y"z'
|
||||||
%bwipe!
|
%bwipe!
|
||||||
split another
|
split another
|
||||||
split x'y\"z
|
execute 'split' escape(filename, '"')
|
||||||
mksession! Xtest_mks_quoted.out
|
mksession! Xtest_mks_quoted.out
|
||||||
%bwipe!
|
%bwipe!
|
||||||
source Xtest_mks_quoted.out
|
source Xtest_mks_quoted.out
|
||||||
call assert_true(bufexists("x'y\"z"))
|
call assert_true(bufexists(filename))
|
||||||
|
|
||||||
%bwipe!
|
%bwipe!
|
||||||
call delete('Xtest_mks_quoted.out')
|
call delete('Xtest_mks_quoted.out')
|
||||||
|
Loading…
Reference in New Issue
Block a user