From 1b192351dc0ef09423ee9a40d68bacc3137c9aec Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 9 Jul 2018 17:32:04 +0300 Subject: Make repository_url(string) to throw invalid_argument for empty string --- tests/repository-location/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/repository-location/driver.cxx') 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 ()); } -- cgit v1.1