diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-20 00:05:15 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-20 00:05:15 +0100 |
commit | 7112776d1b04d2cb01a1b01c0edfa5b86ed88e99 (patch) | |
tree | 423cb978a7e7e680013dd819b2bf20721eede77d /test/test_get_abspath.vader | |
parent | fb0adc602e13fb9d7ee41bb1d3303fdc6bfb45f5 (diff) | |
download | ale-7112776d1b04d2cb01a1b01c0edfa5b86ed88e99.zip |
#653 Update tslint to set the filename key for problems in other files
Diffstat (limited to 'test/test_get_abspath.vader')
-rw-r--r-- | test/test_get_abspath.vader | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_get_abspath.vader b/test/test_get_abspath.vader new file mode 100644 index 00000000..2def3773 --- /dev/null +++ b/test/test_get_abspath.vader @@ -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') |