mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
17 lines
345 B
C++
17 lines
345 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("echo $HOME");
|
|
cmd->exec();
|
|
cmd->tail([](string home) {
|
|
EXPECT_EQ(home + "/test", file_util::expand("~/test"));
|
|
});
|
|
}
|
|
|