diff options
-rw-r--r-- | tests/repository-location/driver.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx index 4eab115..db7c0e2 100644 --- a/tests/repository-location/driver.cxx +++ b/tests/repository-location/driver.cxx @@ -89,7 +89,10 @@ main (int argc, char* argv[]) // Invalid path. // - assert (bad_location ("")); + assert ( + bad_location ("", + repository_location ("http://stable.cppget.org/1/misc"))); + assert (bad_location ("1")); assert (bad_location ("1/")); assert (bad_location ("bbb")); @@ -114,10 +117,14 @@ main (int argc, char* argv[]) repository_location ( "http://stable.cppget.org/1/misc"))); - // Test valid locations. // { + repository_location l (""); + assert (l.string ().empty ()); + assert (l.canonical_name ().empty ()); + } + { repository_location l ("1/aa/bb", repository_location ()); assert (l.string () == "1/aa/bb"); assert (l.canonical_name ().empty ()); |