11 #include <gtest/gtest.h> 19 TEST(FormatTest, LargeStrings)
22 const size_t test_str_len = 30000;
23 test_str.assign(test_str_len,
'A');
26 mrpt::format(
"%u %s", static_cast<unsigned int>(10), test_str.c_str());
28 const size_t out_str_len =
s.size();
31 EXPECT_EQ(out_str_len, (test_str_len + 3));
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
This base provides a set of functions for maths stuff.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.