Mercurial > vim
view src/testdir/test_findfile.vim @ 12604:a0199c0efc73 v8.0.1180
patch 8.0.1180: MS-Windows testclean target deletes the color script
commit https://github.com/vim/vim/commit/75f69e5a183e00cb5aa05d43c1ecf3b7dead7a98
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 7 20:10:29 2017 +0200
patch 8.0.1180: MS-Windows testclean target deletes the color script
Problem: MS-Windows testclean target deletes the color script.
Solution: Rename the script file.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 07 Oct 2017 20:15:05 +0200 |
parents | a479b7064550 |
children | 977a05589b65 |
line wrap: on
line source
" Test for findfile() " func Test_findfile() new let cwd=getcwd() cd .. " Tests may be run from a shadow directory, so an extra cd needs to be done to " get above src/ if fnamemodify(getcwd(), ':t') != 'src' cd ../.. else cd .. endif set ssl call assert_equal('src/testdir/test_findfile.vim', findfile('test_findfile.vim','src/test*')) exe "cd" cwd cd .. call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','test*')) call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','testdir')) exe "cd" cwd q! endfunc