diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-03 22:43:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-03 22:43:38 +0300 |
commit | 09702fc27c673066c87193879d2fdbc19ab9b33f (patch) | |
tree | 0313b87e8f7e77dd71b329c36f7c32979478344f /tests/repository-location | |
parent | 3986a17f6b461516a5c9a933b1ae3a79c692d0bf (diff) |
Normalize host in repository URL
Diffstat (limited to 'tests/repository-location')
-rw-r--r-- | tests/repository-location/driver.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx index a91c2e8..32f5b8e 100644 --- a/tests/repository-location/driver.cxx +++ b/tests/repository-location/driver.cxx @@ -562,6 +562,11 @@ namespace bpkg assert (l.canonical_name () == "pkg:cppget.org/qw/a/b"); } { + repository_location l (loc ("http://00.00.010.0/qw/1/a/b/")); + assert (l.string () == "http://0.0.10.0/qw/1/a/b"); + assert (l.canonical_name () == "pkg:0.0.10.0/qw/a/b"); + } + { repository_location l (loc ("http://pkg.CPPget.org/qw/1/a/b/")); assert (l.string () == "http://pkg.cppget.org/qw/1/a/b"); assert (l.canonical_name () == "pkg:cppget.org/qw/a/b"); |