Fix ale#path#Dirname on Windows

This commit is contained in:
w0rp committed 2021-03-15 21:30:13 +00:00
1 parent c00852e809
commit bd808dca30
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -6,3 +6,8 @@ Execute(ale#path#Dirname should return empty strings should be returned for empt
Execute(ale#path#Dirname should return the dirname of paths):
AssertEqual '/foo', ale#path#Dirname('/foo/bar')
AssertEqual '/foo', ale#path#Dirname('/foo/bar/')
if has('win32')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar\')
endif