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-20 19:01:09 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-11-20 19:01:09 +0300
commitb45f43617fe232c6a36d60f88095e69db96ef53e (patch)
tree78f67fc7e1b048a4557390b9b67f8bdc05961b01 /test
parent152d46c9f7bb0dd793eda3d606c56c4b6afda8dc (diff)
path_view tests now pass on at least MSVC and libstdc++.
Diffstat (limited to 'test')
-rw-r--r--test/tests/path_view.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tests/path_view.cpp b/test/tests/path_view.cpp
index 16b917df..4d4008f6 100644
--- a/test/tests/path_view.cpp
+++ b/test/tests/path_view.cpp
@@ -115,11 +115,7 @@ static inline void TestPathView()
llfio::path_view e(p); // NOLINT
llfio::path_view f(e.filename());
e = e.remove_filename();
-#ifdef _WIN32
BOOST_CHECK(0 == e.compare<>("/mnt/c/Users/ned/Documents/boostish/afio/programs/build_posix/testdir/"));
-#else
- BOOST_CHECK(0 == e.compare<>("/mnt/c/Users/ned/Documents/boostish/afio/programs/build_posix/testdir"));
-#endif
BOOST_CHECK(0 == f.compare<>("0"));
// Trailing
BOOST_CHECK(0 == llfio::path_view("/a/b/").without_trailing_separator().compare<>("/a/b"));
@@ -151,6 +147,7 @@ static inline void TestPathView()
CheckPathView("//");
#endif
CheckPathView("");
+ CheckPathView("/");
CheckPathView(".");
CheckPathView("..");
CheckPathView("/3398e8946ce71e36910b7021170a08c141d8a696ca7226a4c9222ac5924d1f4c.random");
@@ -179,8 +176,11 @@ static inline void TestPathView()
llfio::path_view::c_str<> k(h, llfio::path_view::not_zero_terminated);
BOOST_CHECK(k.buffer == p2 + 70);
+ CheckPathView(L"\\");
+ CheckPathView(L"C:\\");
CheckPathView(L"\\mnt\\c\\Users\\ned\\Documents\\boostish\\afio\\programs\\build_posix\\testdir\\0");
CheckPathView(L"C:\\Users\\ned\\Documents\\boostish\\afio\\programs\\build_posix\\testdir\\0");
+ CheckPathView(L"C:\\Users\\ned\\Documents\\boostish\\afio\\programs\\build_posix\\testdir\\");
CheckPathView("C:/Users/ned/Documents/boostish/afio/programs/build_posix/testdir/0.txt");
CheckPathView(L"\\\\niall\\douglas.txt");
// CheckPathView(L"\\!!\\niall\\douglas.txt");