1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/tests/unit_tests/utils/file.cpp

18 lines
345 B
C++
Raw Normal View History

#include <iomanip>
#include <iostream>
#include "common/test.hpp"
#include "utils/command.hpp"
#include "utils/file.hpp"
2018-06-01 09:25:11 -04:00
using namespace polybar;
2018-06-01 09:25:11 -04:00
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"));
});
}
2018-06-01 09:25:11 -04:00