diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-13 18:52:22 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-10-13 18:52:46 +0800 |
commit | 73309048cf160dc7a89242cacdf278448ae17e7b (patch) | |
tree | 83d50aa726d6fa33ece54cab947101578bc68411 | |
parent | 8c8c6fb05a993574abfa58784c62a1b983565785 (diff) | |
download | rneovim-73309048cf160dc7a89242cacdf278448ae17e7b.tar.gz rneovim-73309048cf160dc7a89242cacdf278448ae17e7b.tar.bz2 rneovim-73309048cf160dc7a89242cacdf278448ae17e7b.zip |
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>
-rw-r--r-- | test/old/testdir/test_functions.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 2bf2f78aa0..d22ff826f9 100644 --- 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')) |