From ec384302dbc279ab1a62f78a2396704256335dbd Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Thu, 25 Oct 2018 08:52:46 +0200 Subject: [PATCH] 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 --- test/format-impl-test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index 1f584e06..e06dd444 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -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"); }