diff --git a/tests/unit_tests/utils/file.cpp b/tests/unit_tests/utils/file.cpp index 47e915ef..ebea3c21 100644 --- a/tests/unit_tests/utils/file.cpp +++ b/tests/unit_tests/utils/file.cpp @@ -5,12 +5,13 @@ #include "utils/command.hpp" #include "utils/file.hpp" -int main() { - using namespace polybar; +using namespace polybar; - "expand"_test = [] { - auto cmd = command_util::make_command("echo $HOME"); - cmd->exec(); - cmd->tail([](string home) { expect(file_util::expand("~/test") == home + "/test"); }); - }; +TEST(File, expand) { + auto cmd = command_util::make_command("echo $HOME"); + cmd->exec(); + cmd->tail([](string home) { + EXPECT_EQ(home + "/test", file_util::expand("~/test")); + }); } +