10 #include <gtest/gtest.h> 21 constexpr
auto b =
literal(
"foo");
25 TEST(StaticString, concat_literals)
27 constexpr
auto a =
literal(
"foo");
28 constexpr
auto b =
literal(
"bar");
32 static_assert(ab.size() == 6,
"***");
37 TEST(StaticString, concat_multi)
39 constexpr
auto a =
literal(
"foo");
40 constexpr
auto b =
literal(
"bar");
45 auto abc = ab +
literal(
"more");
46 static_assert(abc.size() == (6 + 4),
"***");
50 static_assert(abba.size() == 2 * 6,
"***");
53 const char* s = abba.c_str();
54 const char* s2 =
static_cast<const char*
>(abba);
58 const char* s3 =
static_cast<const char*
>(a);
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)