10 #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));
std::string to_string(T v)
Just like std::to_string(), but with an overloaded version for std::string arguments.
std::string std::string format(std::string_view fmt, ARGS &&... args)
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)