]> granicus.if.org Git - vim/commitdiff
patch 8.2.0986: MS-Windows: functions test fails v8.2.0986
authorBram Moolenaar <Bram@vim.org>
Mon, 15 Jun 2020 21:18:12 +0000 (23:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 15 Jun 2020 21:18:12 +0000 (23:18 +0200)
Problem:    MS-Windows: functions test fails.
Solution:   Only simplify ///path on Unix.

src/testdir/test_functions.vim
src/version.c

index aad5a8ce9a908acaaf10f3beb6292d36b337f451..d9f8b9ac0375c4f87295d5a62f3cb9a9400f2b76 100644 (file)
@@ -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'))
index e8a8b335a42f027ff0070a75222cd7eb3ef3f74b..c7806bcdad38ad78b2fe2e6f79b6cf07eff623db 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    986,
 /**/
     985,
 /**/