1
0
Fork 0
mirror of synced 2024-12-27 00:53:20 -05:00
ultimate-vim/sources_non_forked/ale/test/test_path_dirname.vader

14 lines
519 B
Text
Raw Normal View History

2022-05-19 09:16:38 -04:00
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/')
if has('win32')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar')
AssertEqual 'C:\foo', ale#path#Dirname('C:\foo\bar\')
endif