mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#653 Update tslint to set the filename key for problems in other files
This commit is contained in:
15
test/test_get_abspath.vader
Normal file
15
test/test_get_abspath.vader
Normal file
@@ -0,0 +1,15 @@
|
||||
Execute(Relative paths should be resolved correctly):
|
||||
AssertEqual
|
||||
\ '/foo/bar/baz/whatever.txt',
|
||||
\ ale#path#GetAbsPath('/foo/bar/xyz', '../baz/whatever.txt')
|
||||
AssertEqual
|
||||
\ '/foo/bar/xyz/whatever.txt',
|
||||
\ ale#path#GetAbsPath('/foo/bar/xyz', './whatever.txt')
|
||||
AssertEqual
|
||||
\ '/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')
|
||||
Reference in New Issue
Block a user