diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-11-19 16:43:23 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-11-19 16:43:23 +0300 |
commit | 9c3489c7deda8223dda0cdc21a6e159bc7f8e5c2 (patch) | |
tree | 90a2ec30a81203ec5f3356c241adf4f00c29009a /test | |
parent | 3eff6aeefaa8b44040c1bab5daaa1fedb43f27dd (diff) |
Fix without_trailing_separator() removing root.
Diffstat (limited to 'test')
-rw-r--r-- | test/tests/path_view.cpp | 1 |
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); |