diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-21 21:55:30 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-23 12:29:41 +0300 |
commit | 81150339ba6c143c95517b1b5815de7ace177768 (patch) | |
tree | cd8f19eee91ee42721bb71b5ffce94469a1e047e /tests/repository-location/driver.cxx | |
parent | 09702fc27c673066c87193879d2fdbc19ab9b33f (diff) |
On Windows convert repo canonical name path part to lower case
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r-- | tests/repository-location/driver.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx index 32f5b8e..3eb8101 100644 --- a/tests/repository-location/driver.cxx +++ b/tests/repository-location/driver.cxx @@ -765,6 +765,18 @@ namespace bpkg assert (l1.string () == l2.string ()); assert (l1.canonical_name () == l2.canonical_name ()); } + { + repository_location l1 (loc ("c:/var/pkg/1/misc")); + repository_location l2 (loc ("c:/var/Pkg/1/Misc")); + assert (l1.canonical_name () == "pkg:misc"); + assert (l2.canonical_name () == l1.canonical_name ()); + } + { + repository_location l1 (loc ("c:\\repo.git", repository_type::git)); + repository_location l2 (loc ("C:/Repo.Git", repository_type::git)); + assert (l1.canonical_name () == "git:c:\\repo"); + assert (l2.canonical_name () == l1.canonical_name ()); + } #endif { repository_location l1 (loc ("http://www.cppget.org/1/stable")); |