11 #include <gtest/gtest.h> 14 TEST(FormatTest, LargeStrings)
17 const size_t test_str_len = 30000;
18 test_str.assign(test_str_len,
'A');
21 mrpt::format(
"%u %s", static_cast<unsigned int>(10), test_str.c_str());
23 const size_t out_str_len =
s.size();
26 EXPECT_EQ(out_str_len, (test_str_len + 3));
GLsizei const GLchar ** string
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
std::string std::string to_string(T v)
Just like std::to_string(), but with an overloaded version for std::string arguments.