xo-flatstring: undercap flastring_concat instead of char arrays
This commit is contained in:
parent
6b43254b79
commit
0a03aa949b
3 changed files with 34 additions and 4 deletions
|
|
@ -231,6 +231,25 @@ namespace xo {
|
|||
|
||||
REQUIRE(::strcmp(concat.c_str(), req_str.c_str()) == 0);
|
||||
}
|
||||
|
||||
#ifdef NOT_USING
|
||||
{
|
||||
auto concat4 = flatstring_concat(str,
|
||||
flatstring(text2),
|
||||
str,
|
||||
flatstring(text2));
|
||||
auto req_str = string(text) + string(text2) + string(text) + string(text2);
|
||||
|
||||
REQUIRE(::strcmp(concat4.c_str(), req_str.c_str()) == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
auto concat4 = flatstring_concat(str, str2, str, str2);
|
||||
auto req_str = string(text) + string(text2) + string(text) + string(text2);
|
||||
|
||||
REQUIRE(::strcmp(concat4.c_str(), req_str.c_str()) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename String>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue