2017-08-19 19:05:15 -04:00
|
|
|
Execute(Relative paths should be resolved correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ '/foo/bar/baz/whatever.txt',
|
|
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', '../baz/whatever.txt')
|
|
|
|
AssertEqual
|
2017-10-22 20:26:31 -04:00
|
|
|
\ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
2017-08-19 19:05:15 -04:00
|
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', './whatever.txt')
|
|
|
|
AssertEqual
|
2017-10-22 20:26:31 -04:00
|
|
|
\ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
2017-08-19 19:05:15 -04:00
|
|
|
\ 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')
|