1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/tests/unit_tests/utils/file.cpp
2020-05-08 23:24:29 +02:00

16 lines
371 B
C++

#include <iomanip>
#include <iostream>
#include "common/test.hpp"
#include "utils/command.hpp"
#include "utils/file.hpp"
using namespace polybar;
TEST(File, expand) {
auto cmd = command_util::make_command<output_policy::REDIRECTED>("echo $HOME");
cmd->exec();
cmd->tail([](string home) {
EXPECT_EQ(home + "/test", file_util::expand("~/test"));
});
}