-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
9 changed files
with
288 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
" 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 |
Oops, something went wrong.