2017-06-02 16:29:55 +00:00
|
|
|
#include <iomanip>
|
|
|
|
#include <iostream>
|
|
|
|
|
2018-04-07 20:16:55 +00:00
|
|
|
#include "common/test.hpp"
|
|
|
|
#include "utils/command.hpp"
|
|
|
|
#include "utils/file.hpp"
|
2017-06-02 16:29:55 +00:00
|
|
|
|
|
|
|
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"); });
|
|
|
|
};
|
|
|
|
}
|