diff options
author | James McCoy <jamessan@jamessan.com> | 2018-12-29 11:12:25 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-12-29 16:53:09 -0500 |
commit | bebbf08c8cd56dccc1021995005ad38727dcf035 (patch) | |
tree | bf73d6451e333897931484f3a50de76a1e1e5ccf | |
parent | ce4199e8b043d32b03f1ac276defb429502a6bdf (diff) | |
download | rneovim-bebbf08c8cd56dccc1021995005ad38727dcf035.tar.gz rneovim-bebbf08c8cd56dccc1021995005ad38727dcf035.tar.bz2 rneovim-bebbf08c8cd56dccc1021995005ad38727dcf035.zip |
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.
https://github.com/vim/vim/commit/53c8a478cc4265549597b00214e0da812154742e
-rw-r--r-- | test/functional/legacy/packadd_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua index ca6e1a7b4c..609f825177 100644 --- a/test/functional/legacy/packadd_spec.lua +++ b/test/functional/legacy/packadd_spec.lua @@ -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' |