neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 73309048cf160dc7a89242cacdf278448ae17e7b
parent 8c8c6fb05a993574abfa58784c62a1b983565785
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun, 13 Oct 2024 18:52:22 +0800

vim-patch:8.2.0986: MS-Windows: functions test fails

Problem:    MS-Windows: functions test fails.
Solution:   Only simplify ///path on Unix.

https://github.com/vim/vim/commit/c70222d12a2f8552273c0de48a3bf7138d649175

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Mtest/old/testdir/test_functions.vim | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim @@ -384,8 +384,10 @@ func Test_simplify() call assert_equal('/', simplify('/..')) call assert_equal('/...', simplify('/...')) call assert_equal('//path', simplify('//path')) - call assert_equal('/path', simplify('///path')) - call assert_equal('/path', simplify('////path')) + if has('unix') + call assert_equal('/path', simplify('///path')) + call assert_equal('/path', simplify('////path')) + endif call assert_equal('./dir/file', './dir/file'->simplify()) call assert_equal('./dir/file', simplify('.///dir//file'))