From 82666617352b5b488f6ef59981359bd26376adf7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 29 Sep 2018 16:38:35 +0300 Subject: Adapt to basic_url API change --- tests/repository-location/driver.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/repository-location') 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")); -- cgit v1.1