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

21 lines
504 B
C++

#include <iomanip>
#include <iostream>
#include "components/logger.cpp"
#include "utils/command.cpp"
#include "utils/concurrency.cpp"
#include "utils/env.cpp"
#include "utils/file.cpp"
#include "utils/io.cpp"
#include "utils/process.cpp"
#include "utils/string.cpp"
int main() {
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"); });
};
}