aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-21 15:42:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-21 15:42:38 +0200
commitfdf165a739b972234b5cada2e333699b0f4013bc (patch)
tree185e6733714266b685568a6ac8f61d81c0cd2996 /tests/repository-location/driver.cxx
parent26a42f71564fb97d5dba924f681e70fedcf6af46 (diff)
Adopt repository location test to reflect expanded empty location
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r--tests/repository-location/driver.cxx11
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 ());