From fdf165a739b972234b5cada2e333699b0f4013bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Sep 2015 15:42:38 +0200 Subject: Adopt repository location test to reflect expanded empty location --- tests/repository-location/driver.cxx | 11 +++++++++-- 1 file 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 ()); -- cgit v1.1