summaryrefslogtreecommitdiff
path: root/test/test_nearest_file_search.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_nearest_file_search.vader')
-rw-r--r--test/test_nearest_file_search.vader4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_nearest_file_search.vader b/test/test_nearest_file_search.vader
index 71b7d109..63e82da8 100644
--- a/test/test_nearest_file_search.vader
+++ b/test/test_nearest_file_search.vader
@@ -7,7 +7,9 @@ After:
Execute(We should be able to find a configuration file further up):
call ale#test#SetFilename('top/middle/bottom/dummy.txt')
- AssertEqual expand('%:p:h:h:h:h') . '/top/example.ini', ale#path#FindNearestFile(bufnr('%'), 'example.ini')
+ AssertEqual
+ \ ale#path#Winify(expand('%:p:h:h:h:h') . '/top/example.ini'),
+ \ ale#path#FindNearestFile(bufnr('%'), 'example.ini')
Execute(We shouldn't find anything for files which don't match):
AssertEqual '', ale#path#FindNearestFile(bufnr('%'), 'cantfindthis')