D | color-test.cc | 4 // All rights reserved. 6 // For the license information refer to format.h. 8 #include "fmt/color.h" 14 #include "gtest-extra.h" 16 TEST(ColorsTest, ColorsPrint) { in TEST() function 17 EXPECT_WRITE(stdout, fmt::print(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST() 55 TEST(ColorsTest, Format) { in TEST() function 56 EXPECT_EQ(fmt::format(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST() 58 EXPECT_EQ(fmt::format(fg(fmt::rgb(255, 20, 30)), L"rgb(255,20,30) wide"), in TEST() 92 TEST(ColorsTest, FormatToOutAcceptsTextStyle) { in TEST() function [all …]
|