mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
oldtests: win: fix pathsep in :mkview test
This commit is contained in:
parent
6deddb26de
commit
3e1daa84e9
@ -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('.'))
|
||||
|
Loading…
Reference in New Issue
Block a user