mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 00:52:20 +00:00
16 lines
603 B
Plaintext
16 lines
603 B
Plaintext
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')
|