Mercurial > vim
comparison src/testdir/test_findfile.vim @ 10940:a479b7064550 v8.0.0359
patch 8.0.0359: 'number' and 'relativenumber' are not properly tested
commit https://github.com/vim/vim/commit/dc9a081712ec8c140e6d4909e9f6b03a629d32d3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 18:46:50 2017 +0100
patch 8.0.0359: 'number' and 'relativenumber' are not properly tested
Problem: 'number' and 'relativenumber' are not properly tested.
Solution: Add tests, change old style to new style tests. (Ozaki Kiichi,
closes #1447)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 19:00:05 +0100 |
parents | |
children | 977a05589b65 |
comparison
equal
deleted
inserted
replaced
10939:86572a2aab2e | 10940:a479b7064550 |
---|---|
1 " Test for findfile() | |
2 " | |
3 func Test_findfile() | |
4 new | |
5 let cwd=getcwd() | |
6 cd .. | |
7 | |
8 " Tests may be run from a shadow directory, so an extra cd needs to be done to | |
9 " get above src/ | |
10 if fnamemodify(getcwd(), ':t') != 'src' | |
11 cd ../.. | |
12 else | |
13 cd .. | |
14 endif | |
15 set ssl | |
16 | |
17 call assert_equal('src/testdir/test_findfile.vim', findfile('test_findfile.vim','src/test*')) | |
18 exe "cd" cwd | |
19 cd .. | |
20 call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','test*')) | |
21 call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','testdir')) | |
22 | |
23 exe "cd" cwd | |
24 q! | |
25 endfunc |