/ test / test_path_dirname.vader
test_path_dirname.vader
 1  Execute(ale#path#Dirname should return empty strings should be returned for empty values):
 2    AssertEqual '', ale#path#Dirname('')
 3    AssertEqual '', ale#path#Dirname(0)
 4    AssertEqual '', ale#path#Dirname(v:null)
 5  
 6  Execute(ale#path#Dirname should return the dirname of paths):
 7    AssertEqual '/foo', ale#path#Dirname('/foo/bar')
 8    AssertEqual '/foo', ale#path#Dirname('/foo/bar/')
 9  
10    if has('win32')
11      AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar')
12      AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar\')
13    endif