diff src/testdir/test_functions.vim @ 20869:738e182aaf29 v8.2.0986

patch 8.2.0986: MS-Windows: functions test fails Commit: https://github.com/vim/vim/commit/c70222d12a2f8552273c0de48a3bf7138d649175 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 15 23:18:12 2020 +0200 patch 8.2.0986: MS-Windows: functions test fails Problem: MS-Windows: functions test fails. Solution: Only simplify ///path on Unix.
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Jun 2020 23:30:03 +0200
parents 9c24319b4cb2
children 69055d27e85e
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -464,8 +464,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'))