25 std::string str =
"abc";
26 std::string_view sr =
"xyz";
27 const char* literal =
"foo";
28 std::array<char, 100> buf; buf[0] =
'q'; buf[1] =
'u'; buf[2] =
'x'; buf[3] =
'\0';
30 unsigned char uc = 222;
55 CHECK(
strCat(hex_string<4, HexCase::upper>(i)) ==
"E240");
59 CHECK(
strCat(bin_string<16>(i)) ==
"1110001001000000");
101 CHECK(
strCat(literal, buf.data(), rValue()) ==
"fooquxbar");
104 CHECK(
strCat(rValue(), i, literal) ==
"bar123456foo");
105 CHECK(
strCat(rValue(), uc, buf.data()) ==
"bar222qux");
108 CHECK(
strCat(str, sr, literal, buf.data(), c, uc, m, i, rValue(),
spaces(2), hex_string<2>(255)) ==
109 "abcxyzfooqux-222-31123456bar ff");
110 CHECK(
strCat(rValue(), uc, buf.data(), c,
spaces(2), str, i, hex_string<3>(9999), sr, literal, m) ==
111 "bar222qux- abc12345670fxyzfoo-31");