oldtests: win: fix pathsep in :mkview test

This commit is contained in:
Jan Edmund Lazo 2018-09-03 00:09:57 -04:00
parent 6deddb26de
commit 3e1daa84e9

View File

@ -206,10 +206,11 @@ func Test_mkview_loadview_with_viewdir()
" The directory Xviewdir/ should have been created and the view
" should be stored in that directory.
call assert_equal('Xviewdir/' .
let pathsep = has('win32') ? '\' : '/'
call assert_equal('Xviewdir' . pathsep .
\ substitute(
\ substitute(
\ expand('%:p'), '/', '=+', 'g'), ':', '=-', 'g') . '=1.vim',
\ expand('%:p'), pathsep, '=+', 'g'), ':', '=-', 'g') . '=1.vim',
\ glob('Xviewdir/*'))
call assert_equal(1, &number)
call assert_match('\*:mkview\*$', getline('.'))