aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-09 17:32:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-09 17:32:04 +0300
commit1b192351dc0ef09423ee9a40d68bacc3137c9aec (patch)
tree9966cdfad17be2fcdc89d0773adb3cb577104f7b /tests/repository-location
parentc5b2691bcb978802aba99b21d42c99d89f550982 (diff)
Make repository_url(string) to throw invalid_argument for empty string
Diffstat (limited to 'tests/repository-location')
-rw-r--r--tests/repository-location/driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index 4b4a807..bb55cf9 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -231,7 +231,7 @@ namespace bpkg
// Test valid locations.
//
{
- repository_location l (loc (""));
+ repository_location l (repository_url (), repository_type::pkg);
assert (l.string ().empty ());
assert (l.canonical_name ().empty ());
}