Commit ec384302 authored by Daniela Engert's avatar Daniela Engert Committed by Victor Zverovich

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
parent 0a96c032
...@@ -211,4 +211,7 @@ TEST(ColorsTest, Colors) { ...@@ -211,4 +211,7 @@ TEST(ColorsTest, Colors) {
"\x1b[38;2;255;020;030mrgb(255,20,30)\x1b[0m"); "\x1b[38;2;255;020;030mrgb(255,20,30)\x1b[0m");
EXPECT_WRITE(stdout, fmt::print(fmt::color::blue, "blue"), EXPECT_WRITE(stdout, fmt::print(fmt::color::blue, "blue"),
"\x1b[38;2;000;000;255mblue\x1b[0m"); "\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");
} }
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