ale/test/test_path_dirname.vader

14 lines
519 B
Plaintext
Raw Permalink Normal View History

Execute(ale#path#Dirname should return empty strings should be returned for empty values):
AssertEqual '', ale#path#Dirname('')
AssertEqual '', ale#path#Dirname(0)
AssertEqual '', ale#path#Dirname(v:null)
Execute(ale#path#Dirname should return the dirname of paths):
AssertEqual '/foo', ale#path#Dirname('/foo/bar')
AssertEqual '/foo', ale#path#Dirname('/foo/bar/')
2021-03-15 21:30:13 +00:00
if has('win32')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar\')
endif