void (*runTest) (); /**< run test function */
} CCUnitTestCase;
+typedef CCUnitTestCase CCUnitTestFunc;
+
/**
* Create new test case.
* @param name case name.
void (*runTest)());
/**
+ * Create new test function.
+ * @param name func name.
+ * @param desc func description.
+ * @param func run test function.
+ * @return new test func.
+ * @ingroup WritingTestFixture
+ */
+extern inline CCUnitTestFunc* ccunit_newTestFunc (const char* name,
+ const char* desc,
+ void (*func)());
+#define CCUNIT_NEWTESTFUNC(FUNC) ccunit_newTestFunc (#FUNC, NULL, FUNC)
+
+/**
* Delete test case.
* @param testCase deleting case.
* @ingroup WritingTestFixture
*/
extern void ccunit_deleteTestCase (CCUnitTestCase* testCase);
+/**
+ * Delete test func.
+ * @param testFunc deleting func.
+ * @ingroup WritingTestFixture
+ */
+extern inline void ccunit_deleteTestFunc (CCUnitTestFunc* testFunc);
+
/** @} */
#endif /* !CCUNITTESTCASE_H */