Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-11-19 16:43:23 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-11-19 16:43:23 +0300
commit9c3489c7deda8223dda0cdc21a6e159bc7f8e5c2 (patch)
tree90a2ec30a81203ec5f3356c241adf4f00c29009a /test
parent3eff6aeefaa8b44040c1bab5daaa1fedb43f27dd (diff)
Fix without_trailing_separator() removing root.
Diffstat (limited to 'test')
-rw-r--r--test/tests/path_view.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tests/path_view.cpp b/test/tests/path_view.cpp
index 74f0e098..a0880ebc 100644
--- a/test/tests/path_view.cpp
+++ b/test/tests/path_view.cpp
@@ -120,6 +120,7 @@ static inline void TestPathView()
// Trailing
BOOST_CHECK(0 == llfio::path_view("/a/b/").without_trailing_separator().compare<>("/a/b"));
BOOST_CHECK(0 == llfio::path_view("/a/b").without_trailing_separator().compare<>("/a/b"));
+ BOOST_CHECK(0 == llfio::path_view("/").without_trailing_separator().compare<>("/"));
#ifndef _WIN32
// cstr
llfio::path_view::c_str<> g(e, llfio::path_view::zero_terminated);