Add test macro for comparing String to zero-terminated strings.
This macro avoids the need to wrap the first parameter in strPtr() and should improve readability.
@@ -284,6 +284,9 @@ Macros to ease the use of common data types
#define TEST_RESULT_STR_NE(statement, resultExpected, ...) \
TEST_RESULT_STR_PARAM(statement, resultExpected, !=, __VA_ARGS__);
+#define TEST_RESULT_STR_Z(statement, resultExpected, ...) \
+ TEST_RESULT_STR(strPtr(statement), resultExpected, __VA_ARGS__);
+
#define TEST_RESULT_U16_HEX(statement, resultExpected, ...) \
TEST_RESULT(statement, resultExpected, uint16_t, "%04X", TEST_TYPE_FORMAT, ==, TEST_TYPE_COMPARE, __VA_ARGS__);
