aboutsummaryrefslogtreecommitdiff
path: root/tests/wanda/test_suite_xdg.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-15 12:07:00 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-15 12:07:00 +0100
commit9941c06c33c601a3e59c008c35c6181ba8a2e7f9 (patch)
treee5a71e5a3d3c541c82077695a0c302cfa952051d /tests/wanda/test_suite_xdg.cpp
parented419140280553b070943b7ba539120a26ff5686 (diff)
downloadwanda-9941c06c33c601a3e59c008c35c6181ba8a2e7f9.tar.xz
wanda-9941c06c33c601a3e59c008c35c6181ba8a2e7f9.zip
testing: rework test code
Diffstat (limited to 'tests/wanda/test_suite_xdg.cpp')
-rw-r--r--tests/wanda/test_suite_xdg.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/wanda/test_suite_xdg.cpp b/tests/wanda/test_suite_xdg.cpp
index 0338ee3..70597f7 100644
--- a/tests/wanda/test_suite_xdg.cpp
+++ b/tests/wanda/test_suite_xdg.cpp
@@ -1,13 +1,14 @@
-#include "test_suite_xdg.hpp"
#include <wanda/xdg.hpp>
-#include "cute/cute.h"
+#include <cute/cute.h>
#include <unistd.h>
#include <filesystem>
+#include <string>
+#include <utility>
-namespace wanda
+namespace wanda::test
{
namespace
@@ -76,7 +77,7 @@ void test_xdg_path_for_runtime_dir_with_xdg_runtime_dir_in_environment()
ASSERT_EQUAL("/home/cute/xdg_runtime_dir", xdg_path_for(xdg_directory::runtime_dir, env));
}
-std::pair<cute::suite, std::string> test_suite_xdg()
+std::pair<cute::suite, std::string> suite()
{
return std::make_pair(cute::suite{
CUTE(test_xdg_variables),