# HG changeset patch # User Mike Becker # Date 1666537030 -7200 # Node ID 8b48126671cf5c61e23ca593a88f349a423cc7cd # Parent 52fcaf3c9154e348dfe28a040f25cce65f1a1eae #217 cover cx_strcat macro diff -r 52fcaf3c9154 -r 8b48126671cf test/test_string.cpp --- a/test/test_string.cpp Sun Oct 23 16:49:35 2022 +0200 +++ b/test/test_string.cpp Sun Oct 23 16:57:10 2022 +0200 @@ -257,6 +257,12 @@ cx_strfree_a(&alloc, &t4); EXPECT_TRUE(alloc.verify()); + + // use the macro + cxmutstr t5 = cx_strcat(3, s3, s1, s2); + EXPECT_EQ(cx_strcmp(cx_strcast(t5), cx_str("561234")), 0); + EXPECT_ZERO_TERMINATED(t5); + cx_strfree(&t5); } TEST(String, strsplit) {