aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r--tests/repository-location/driver.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index db7c0e2..4ee0c57 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -54,7 +54,6 @@ main (int argc, char* argv[])
{
// Test invalid locations.
//
-
// Invalid host.
//
assert (bad_location ("http:///aa/bb"));
@@ -95,11 +94,17 @@ main (int argc, char* argv[])
assert (bad_location ("1"));
assert (bad_location ("1/"));
+ assert (bad_location ("1/.."));
assert (bad_location ("bbb"));
assert (bad_location ("aaa/bbb"));
assert (bad_location ("/aaa/bbb"));
+ assert (bad_location ("http://aa"));
+ assert (bad_location ("http://aa/"));
+ assert (bad_location ("http://aa/b/.."));
+ assert (bad_location ("http://aa/."));
assert (bad_location ("http://aa/bb"));
assert (bad_location ("http://a.com/../c/1/aa"));
+ assert (bad_location ("http://a.com/a/b/../../../c/1/aa"));
// Invalid version.
//