File: test_path_dirname.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (13 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
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