mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.0354: packadd test fails on MS-Windows
Problem: Packadd test fails on MS-Windows.
Solution: Ignore difference between forward and backward slashes.
53c8a478cc
This commit is contained in:
parent
ce4199e8b0
commit
bebbf08c8c
@ -70,9 +70,10 @@ describe('packadd', function()
|
||||
call assert_match(Escape(s:plugdir) . '\($\|,\)', &rtp)
|
||||
|
||||
let new_after = match(&rtp, Escape(expand(s:plugdir . '/after') . ','))
|
||||
let old_after = match(&rtp, ',' . Escape(first_after_entry) . '\>')
|
||||
let forwarded = substitute(first_after_entry, '\\', '[/\\\\]', 'g')
|
||||
let old_after = match(&rtp, ',' . escape(forwarded, '~') . '\>')
|
||||
call assert_true(new_after > 0, 'rtp is ' . &rtp)
|
||||
call assert_true(old_after > 0, 'rtp is ' . &rtp)
|
||||
call assert_true(old_after > 0, 'match ' . forwarded . ' in ' . &rtp)
|
||||
call assert_true(new_after < old_after, 'rtp is ' . &rtp)
|
||||
|
||||
" NOTE: '/.../opt/myte' forwardly matches with '/.../opt/mytest'
|
||||
|
Loading…
Reference in New Issue
Block a user