summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/unittests/testMaintenanceBits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/unittests/testMaintenanceBits.cpp')
-rw-r--r--gentoobrowse-api/unittests/testMaintenanceBits.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gentoobrowse-api/unittests/testMaintenanceBits.cpp b/gentoobrowse-api/unittests/testMaintenanceBits.cpp
index c7104d9..9c16f74 100644
--- a/gentoobrowse-api/unittests/testMaintenanceBits.cpp
+++ b/gentoobrowse-api/unittests/testMaintenanceBits.cpp
@@ -3,16 +3,16 @@
#include <maintenance/abstractFileProcessor.h>
-BOOST_AUTO_TEST_CASE( match )
+BOOST_AUTO_TEST_CASE(match)
{
- std::filesystem::path path { "metadata/md5-cache/app-admin/conky-1.10.6-r1" };
- Gentoo::Service::PathParts pp { path.begin(), path.end() };
+ std::filesystem::path path {"metadata/md5-cache/app-admin/conky-1.10.6-r1"};
+ Gentoo::Service::PathParts pp {path.begin(), path.end()};
BOOST_REQUIRE_EQUAL(4, pp.size());
BOOST_CHECK_EQUAL("metadata", pp[0]);
BOOST_CHECK_EQUAL("md5-cache", pp[1]);
}
-BOOST_AUTO_TEST_CASE( compose )
+BOOST_AUTO_TEST_CASE(compose)
{
// std::filesystem composes slightly differently to boost::filesystem
// Specifically "/base" / "/sub"
@@ -24,4 +24,3 @@ BOOST_AUTO_TEST_CASE( compose )
std::filesystem::path comp = base / std::filesystem::path(sub).lexically_relative("/") / file;
BOOST_CHECK_EQUAL("/base/sub/file", comp);
}
-