From 9420c411bda14348a435a76bb415a3081940b285 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 20 Nov 2017 00:02:33 +0000 Subject: #1149 Fix conversion from URIs to filenames on Windows --- test/test_path_uri.vader | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/test_path_uri.vader') 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') -- cgit v1.2.3