ucx/cx/test.h

branch
dav-2
changeset 896
2c765c286536
parent 895
87638f19f6dd
--- a/ucx/cx/test.h	Wed Jan 07 22:23:43 2026 +0100
+++ b/ucx/cx/test.h	Wed Jan 07 22:31:05 2026 +0100
@@ -43,13 +43,13 @@
  * **** IN SOURCE FILE: ****
  * <code>
  * CX_TEST_SUBROUTINE(subroutine_name, paramlist) {
- *   // tests with CX_TEST_ASSERTM()
+ *   // tests with CX_TEST_ASSERT()
  * }
  * 
  * CX_TEST(function_name) {
  *   // memory allocation and other stuff here
  *   #CX_TEST_DO {
- *     // tests with CX_TEST_ASSERTM() and/or
+ *     // tests with CX_TEST_ASSERT() and/or
  *     // calls with CX_TEST_CALL_SUBROUTINE() here
  *   }
  *   // cleanup of memory here
@@ -57,7 +57,7 @@
  * </code>
  * 
  * @attention Do not call own functions within a test that use
- * CX_TEST_ASSERTM() macros and are not defined by using CX_TEST_SUBROUTINE().
+ * CX_TEST_ASSERT() macros and are not defined by using CX_TEST_SUBROUTINE().
  *
  * @author Mike Becker
  * @author Olaf Wintermann
@@ -255,7 +255,7 @@
  * }
  * @endcode
  *
- * @attention Any CX_TEST_ASSERTM() calls must be performed in the scope of
+ * @attention Any CX_TEST_ASSERT() calls must be performed in the scope of
  * #CX_TEST_DO.
  */
 #define CX_TEST_DO _writefnc_("Running ", 1, 8, _output_);\
@@ -275,7 +275,7 @@
  * @param condition (@c bool) the condition to check
  * @param message (@c char*) the message that shall be printed out on failure
  */
-#define CX_TEST_ASSERTMM(condition,message) if (!(condition)) { \
+#define CX_TEST_ASSERTM(condition,message) if (!(condition)) { \
         const char *_assert_msg_ = message; \
         _writefnc_(_assert_msg_, 1, strlen(_assert_msg_), _output_); \
         _writefnc_(".\n", 1, 2, _output_); \
@@ -290,7 +290,7 @@
  * written to the test suites output stream.
  * @param condition (@c bool) the condition to check
  */
-#define CX_TEST_ASSERTM(condition) CX_TEST_ASSERTMM(condition, #condition " failed")
+#define CX_TEST_ASSERT(condition) CX_TEST_ASSERTM(condition, #condition " failed")
 
 /**
  * Macro for a test subroutine function header.

mercurial