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:
James McCoy 2018-12-29 11:12:25 -05:00
parent ce4199e8b0
commit bebbf08c8c
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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'