updated tabs to spaces

This commit is contained in:
LUDA-PC\ludek.vodicka 2017-10-22 17:01:26 +02:00
parent 8b6f3d732c
commit a3a49a48e6

View File

@ -1633,19 +1633,19 @@ TEST(FormatTest, FormatMessageExample) {
class test_class class test_class
{ {
public: public:
std::string format_message(int id, const char *format,const fmt::ArgList &args) const { std::string format_message(int id, const char *format,const fmt::ArgList &args) const {
MemoryWriter w; MemoryWriter w;
w.write("[{}] ", id); w.write("[{}] ", id);
w.write(format, args); w.write(format, args);
return w.str(); return w.str();
} }
FMT_VARIADIC_CONST(std::string, format_message, int, const char *) FMT_VARIADIC_CONST(std::string, format_message, int, const char *)
}; };
TEST(FormatTest, ConstFormatMessage) { TEST(FormatTest, ConstFormatMessage) {
test_class c; test_class c;
EXPECT_EQ("[42] something happened", EXPECT_EQ("[42] something happened",
c.format_message(42, "{} happened", "something")); c.format_message(42, "{} happened", "something"));
} }
#if FMT_USE_VARIADIC_TEMPLATES #if FMT_USE_VARIADIC_TEMPLATES