Add support for int64_t in FormatInt.
This commit is contained in:
1 parent
c3f5dce8d5
commit
bfedba5a0a
2 files changed
+10
-4
No files matched your search
@@ -1411,6 +1411,9 @@ TEST(FormatterTest, Examples) {
|
||||
TEST(FormatIntTest, FormatInt) {
|
||||
EXPECT_EQ("42", fmt::FormatInt(42).str());
|
||||
EXPECT_EQ("-42", fmt::FormatInt(-42).str());
|
||||
std::ostringstream os;
|
||||
os << std::numeric_limits<int64_t>::max();
|
||||
EXPECT_EQ(os.str(), fmt::FormatInt(std::numeric_limits<int64_t>::max()).str());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in new issue
Block a user