summaryrefslogtreecommitdiff
path: root/test/test_path_dirname.vader
blob: 79b78d29c1ba9781c1e7e5c0d141afec278d6294 (plain)
1
2
3
4
5
6
7
8
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/')