2017-08-19 23:05:15 +00: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-23 00:26:31 +00:00
|
|
|
\ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
2017-08-19 23:05:15 +00:00
|
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', './whatever.txt')
|
|
|
|
AssertEqual
|
2017-10-23 00:26:31 +00:00
|
|
|
\ has('win32') ? '/foo/bar/xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
2017-08-19 23:05:15 +00: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')
|