Skip to content

Commit

Permalink
Add test for #1318.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Nov 4, 2015
1 parent 5331c48 commit 869b163
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/vibe/inet/url.d
Expand Up @@ -351,3 +351,10 @@ unittest {
assert(URL("file://./test").pathString == "./test");
assert(URL("file://./test").path.toString() == "./test");
}

unittest { // issue #1318
try {
URL("http://something/inval%id");
assert(false, "Expected to throw an exception.");
} catch (Exception e) {}
}

0 comments on commit 869b163

Please sign in to comment.