1
0
forked from aniani/vim

patch 8.2.0986: MS-Windows: functions test fails

Problem:    MS-Windows: functions test fails.
Solution:   Only simplify ///path on Unix.
This commit is contained in:
Bram Moolenaar
2020-06-15 23:18:12 +02:00
parent fdcbe3c3fe
commit c70222d12a
2 changed files with 6 additions and 2 deletions

View 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'))

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
986,
/**/
985,
/**/