comparison src/testdir/test_undo.vim @ 16702:16a698aeeec1 v8.1.1353

patch 8.1.1353: undo test fails on Mac commit https://github.com/vim/vim/commit/2b39d806f04c1a474b6d689a7970253850d4adb8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 19 16:38:56 2019 +0200 patch 8.1.1353: undo test fails on Mac Problem: Undo test fails on Mac. Solution: Expect "private" on the Mac.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 May 2019 16:45:05 +0200
parents 46322a4e6028
children 380adf86bf66
comparison
equal deleted inserted replaced
16701:be9769416254 16702:16a698aeeec1
440 " Test undofile() with 'undodir' set to a non-existing directory. 440 " Test undofile() with 'undodir' set to a non-existing directory.
441 call assert_equal('', undofile('Xundofoo')) 441 call assert_equal('', undofile('Xundofoo'))
442 442
443 if isdirectory('/tmp') 443 if isdirectory('/tmp')
444 set undodir=/tmp 444 set undodir=/tmp
445 call assert_equal('/tmp/%tmp%file', undofile('///tmp/file')) 445 if has('osx')
446 call assert_equal('/tmp/%private%tmp%file', undofile('///tmp/file'))
447 else
448 call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
449 endif
446 endif 450 endif
447 451
448 set undodir& 452 set undodir&
449 endfunc 453 endfunc