Move path functions to their own file
This commit is contained in:
parent
6c762237ce
commit
e237add9fd
26 changed files with 90 additions and 89 deletions
|
@ -3,9 +3,9 @@ Execute(Open a file some directory down):
|
|||
:e! top/middle/bottom/dummy.txt
|
||||
|
||||
Then(We should be able to find a configuration file further up):
|
||||
AssertEqual expand('%:p:h:h:h:h') . '/top/example.ini', ale#util#FindNearestFile(bufnr('%'), 'example.ini')
|
||||
AssertEqual expand('%:p:h:h:h:h') . '/top/example.ini', ale#path#FindNearestFile(bufnr('%'), 'example.ini')
|
||||
|
||||
Execute(Do nothing):
|
||||
|
||||
Then(We shouldn't find anything for files which don't match):
|
||||
AssertEqual '', ale#util#FindNearestFile(bufnr('%'), 'cantfindthis')
|
||||
AssertEqual '', ale#path#FindNearestFile(bufnr('%'), 'cantfindthis')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue