Commit e00409c5 authored by Victor Zverovich's avatar Victor Zverovich

Comment.

parent 2b641332
......@@ -1655,6 +1655,7 @@ TEST(FormatIntTest, FormatDec) {
#ifdef FMT_USE_DUP
// RAII for file descriptors.
class File {
private:
int fd_;
......@@ -1666,6 +1667,8 @@ class File {
};
TEST(FormatTest, PrintColored) {
// Temporarily redirect stdout to a file and check if PrintColored adds
// necessary ANSI escape sequences.
std::fflush(stdout);
File saved_stdio(dup(1));
EXPECT_NE(-1, saved_stdio.fd());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment