Mercurial > vim
view src/testdir/test_findfile.vim @ 15195:16b2f2db6f28 v8.1.0607
patch 8.1.0607: proto files are not in sync with the source code
commit https://github.com/vim/vim/commit/c447d8d33f695a83fefe4e47334b41c32874c3c5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 18 21:56:28 2018 +0100
patch 8.1.0607: proto files are not in sync with the source code
Problem: Proto files are not in sync with the source code.
Solution: Update the proto files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Dec 2018 22:00:07 +0100 |
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