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 15:48:43 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-11-19 15:48:43 +0300
commit3eff6aeefaa8b44040c1bab5daaa1fedb43f27dd (patch)
tree261b3ee4926e62476926e41ba6144c4b64317396 /test
parent231ba8be57b4a7450566a15aacc1acb5871c71eb (diff)
Add path_view::without_trailing_separator().
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);