18#define TEST_STR "test string"
19 void CtStringTest::testConstruction ()
25 void CtStringTest::testUnsizedConstruction ()
33 void CtStringTest::testUDL ()
35 constexpr auto s =
"test string"_ct;
39 void CtStringTest::testConcat ()
41 constexpr auto s1 =
"hello, "_ct;
42 constexpr auto s2 =
"world!"_ct;
43 constexpr auto s3 =
" how's life?"_ct;
49 constexpr auto concat2 =
"hello, "_ct;
53 void CtStringTest::testNub ()
55 constexpr static std::tuple
input {
"hello"_ct,
"world"_ct,
"hello"_ct,
"lc"_ct,
"what's"_ct,
"up"_ct,
"lc"_ct,
"lc"_ct };
56 constexpr std::tuple
expected {
"hello"_ct,
"world"_ct,
"lc"_ct,
"what's"_ct,
"up"_ct };
58 constexpr static auto F = [&] {
return input; };
Container< T > Filter(const Container< T > &c, F f)
constexpr size_t StringBufSize(const Char *str) noexcept
CtString(RawStr< N, Char >) -> CtString< N - 1, Char >