Add FormatInt::data() and document members.
This commit is contained in:
1 parent
f43de4a469
commit
eadd2ee421
2 files changed
+24
-1
No files matched your search
@@ -1408,6 +1408,11 @@ TEST(FormatterTest, Examples) {
|
||||
ReportError("File not found: {0}") << path;
|
||||
}
|
||||
|
||||
TEST(FormatIntTest, Data) {
|
||||
fmt::FormatInt format_int(42);
|
||||
EXPECT_EQ("42", std::string(format_int.data(), format_int.size()));
|
||||
}
|
||||
|
||||
TEST(FormatIntTest, FormatInt) {
|
||||
EXPECT_EQ("42", fmt::FormatInt(42).str());
|
||||
EXPECT_EQ(2, fmt::FormatInt(42).size());
|
||||
|
||||
Reference in new issue
Block a user