mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Fixed bug https://github.com/vitaut/format/issues/16 . Thanks to https://github.com/fil222 !
This commit is contained in:
@ -1022,6 +1022,10 @@ void CheckUnknownTypes(
|
||||
}
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatBool) {
|
||||
EXPECT_EQ(L"1", str(Format(L"{}") << true));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatShort) {
|
||||
short s = 42;
|
||||
EXPECT_EQ("42", str(Format("{0:d}") << s));
|
||||
|
Reference in New Issue
Block a user