Add a unit test.
This commit is contained in:
parent
35510be63b
commit
10f7d3aeb1
@ -228,4 +228,5 @@ TEST(ColorsTest, Colors) {
|
|||||||
stdout,
|
stdout,
|
||||||
fmt::print(fg(fmt::color::blue) | fmt::emphasis::bold, "blue/bold"),
|
fmt::print(fg(fmt::color::blue) | fmt::emphasis::bold, "blue/bold"),
|
||||||
"\x1b[1m\x1b[38;2;000;000;255mblue/bold\x1b[0m");
|
"\x1b[1m\x1b[38;2;000;000;255mblue/bold\x1b[0m");
|
||||||
|
EXPECT_WRITE(stdout, fmt::print(fmt::text_style(), "hi"), "hi");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user