mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-23 10:50:05 +00:00
additional test for print with background color
checks for clashes with other function overloads in fmt with templated parameters on the first or second position in the parameter list
This commit is contained in:
parent
0a96c032b9
commit
ec384302db
@ -211,4 +211,7 @@ TEST(ColorsTest, Colors) {
|
||||
"\x1b[38;2;255;020;030mrgb(255,20,30)\x1b[0m");
|
||||
EXPECT_WRITE(stdout, fmt::print(fmt::color::blue, "blue"),
|
||||
"\x1b[38;2;000;000;255mblue\x1b[0m");
|
||||
EXPECT_WRITE(stdout,
|
||||
fmt::print(fmt::color::blue, fmt::color::red, "two color"),
|
||||
"\x1b[38;2;000;000;255m\x1b[48;2;255;000;000mtwo color\x1b[0m");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user