summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-03-13 15:54:09 +0000
committerw0rp <devw0rp@gmail.com>2019-03-13 15:54:09 +0000
commit67ea571659f31f2ac2253789fabb6b1a30661508 (patch)
tree4d15f2d31ca28dd35de8979742f8dee7b7ebc606 /test
parent5f03bae41ca1fc63a9e607bed99c277249e9774e (diff)
downloadale-67ea571659f31f2ac2253789fabb6b1a30661508.zip
Handle pipes in Windows drive letters for URIs
Diffstat (limited to 'test')
-rw-r--r--test/test_path_uri.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_path_uri.vader b/test/test_path_uri.vader
index 504aba77..b49d7a5a 100644
--- a/test/test_path_uri.vader
+++ b/test/test_path_uri.vader
@@ -16,6 +16,14 @@ Execute(ale#path#FromURI should work for Windows paths):
AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('FILE:///C:/foo/bar/baz.tst')
AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('FILE:/C:/foo/bar/baz.tst')
+Execute(ale#path#FromURI parse Windows paths with a pipe):
+ AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('file:///C|/foo/bar/baz.tst')
+ AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('file:/C|/foo/bar/baz.tst')
+ AssertEqual 'c:\foo\bar\baz.tst', ale#path#FromURI('file:///c|/foo/bar/baz.tst')
+ AssertEqual 'c:\foo\bar\baz.tst', ale#path#FromURI('file:/c|/foo/bar/baz.tst')
+ AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('FILE:///C|/foo/bar/baz.tst')
+ AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('FILE:/C|/foo/bar/baz.tst')
+
Execute(ale#path#FromURI should handle encoded paths that look like drive letters):
AssertEqual '/C:/foo/bar/baz.tst', ale#path#FromURI('file:///C%3A/foo/bar/baz.tst')