mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 20:32:49 +00:00
Fixed bug https://github.com/vitaut/format/issues/16 . Thanks to https://github.com/fil222 !
This commit is contained in:
parent
ea5dce3957
commit
c3f5dce8d5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user