summaryrefslogtreecommitdiff
path: root/test/test_path_uri.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-20 00:02:33 +0000
committerw0rp <devw0rp@gmail.com>2017-11-20 00:02:33 +0000
commit9420c411bda14348a435a76bb415a3081940b285 (patch)
tree87696c4c84684f2873b77032d74d835ca751d373 /test/test_path_uri.vader
parent597507e5197ef51037d01d30ad819a048eea9c9b (diff)
downloadale-9420c411bda14348a435a76bb415a3081940b285.zip
#1149 Fix conversion from URIs to filenames on Windows
Diffstat (limited to 'test/test_path_uri.vader')
-rw-r--r--test/test_path_uri.vader3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_path_uri.vader b/test/test_path_uri.vader
index dbceac3a..a3e68d98 100644
--- a/test/test_path_uri.vader
+++ b/test/test_path_uri.vader
@@ -2,6 +2,9 @@ Execute(ale#path#ToURI should work for Windows paths):
AssertEqual 'file:///C:/foo/bar/baz.tst', ale#path#ToURI('C:\foo\bar\baz.tst')
AssertEqual 'foo/bar/baz.tst', ale#path#ToURI('foo\bar\baz.tst')
+Execute(ale#path#FromURI should work for Windows paths):
+ AssertEqual 'C:\foo\bar\baz.tst', ale#path#FromURI('file:///C:/foo/bar/baz.tst')
+
Execute(ale#path#ToURI should work for Unix paths):
AssertEqual 'file:///foo/bar/baz.tst', ale#path#ToURI('/foo/bar/baz.tst')
AssertEqual 'foo/bar/baz.tst', ale#path#ToURI('foo/bar/baz.tst')