summaryrefslogtreecommitdiff
path: root/test/test_get_abspath.vader
blob: 5f813804bec3eb9a67129fd32278877a6dd1a67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Execute(Relative paths should be resolved correctly):
  AssertEqual
  \ '/foo/bar/baz/whatever.txt',
  \ ale#path#GetAbsPath('/foo/bar/xyz', '../baz/whatever.txt')
  AssertEqual
  \ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
  \ ale#path#GetAbsPath('/foo/bar/xyz', './whatever.txt')
  AssertEqual
  \ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
  \ ale#path#GetAbsPath('/foo/bar/xyz', 'whatever.txt')

Execute(Absolute paths should be resolved correctly):
  AssertEqual
  \ '/ding/dong',
  \ ale#path#GetAbsPath('/foo/bar/xyz', '/ding/dong')