mirror of
https://github.com/neovim/neovim.git
synced 2026-01-05 10:57:11 +10: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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user