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:
Diffstat (limited to 'test')
-rw-r--r--test/tests/path_view.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tests/path_view.cpp b/test/tests/path_view.cpp
index 98224c2b..74f0e098 100644
--- a/test/tests/path_view.cpp
+++ b/test/tests/path_view.cpp
@@ -117,6 +117,9 @@ static inline void TestPathView()
e = e.remove_filename();
BOOST_CHECK(0 == e.compare<>("/mnt/c/Users/ned/Documents/boostish/afio/programs/build_posix/testdir/"));
BOOST_CHECK(0 == f.compare<>("0"));
+ // 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"));
#ifndef _WIN32
// cstr
llfio::path_view::c_str<> g(e, llfio::path_view::zero_terminated);