Skip to content

Commit 2dbb655

Browse files
committed
Add two URI tests
1 parent e679a49 commit 2dbb655

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_uri.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ using FilePaths
44
@testset "URI" begin
55
@test string(URI(p"/foo/bar")) == "file:///foo/bar"
66
@test string(URI(p"/foo foo/bar")) == "file:///foo%20foo/bar"
7+
@test_throws ArgumentError URI(p"foo/bar")
8+
@test string(URI(WindowsPath("C:\\foo\\bar"))) == "file:///C:/foo/bar"
79
end

0 commit comments

Comments
 (0)