aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-29 16:38:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-09 21:29:01 +0300
commit82666617352b5b488f6ef59981359bd26376adf7 (patch)
treefd29de420afb9e0255985e9c567de02250d5a0de /tests
parent4d005750a87682a6a3fd448011894d7132b02a78 (diff)
Adapt to basic_url API change
Diffstat (limited to 'tests')
-rw-r--r--tests/repository-location/driver.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index bb55cf9..dc1ecb7 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -645,6 +645,14 @@ namespace bpkg
assert (l2.canonical_name () == "git:example.com/test#master");
assert (l2.proto () == proto::https);
}
+
+ {
+ repository_location l (loc ("http:repo/1/path", loc ()));
+ assert (l.string () == "http:repo/1/path");
+ assert (l.canonical_name ().empty ());
+ assert (l.proto () == proto::file);
+ }
+
#ifndef _WIN32
{
repository_location l1 (loc ("/var/r1/1/misc"));