OSDN Git Service

A function related to TestFunc is added.
authortsntsumi <tsntsumi@users.sourceforge.jp>
Wed, 1 Oct 2003 20:46:03 +0000 (20:46 +0000)
committertsntsumi <tsntsumi@users.sourceforge.jp>
Wed, 1 Oct 2003 20:46:03 +0000 (20:46 +0000)
src/ccunit/CCUnitTestCase.c

index d645b6a..155cbb1 100755 (executable)
@@ -44,6 +44,13 @@ CCUnitTestCase* ccunit_newTestCase (const char* name,
   return testCase;
 }
 
+inline CCUnitTestFunc* ccunit_newTestFunc (const char* name,
+                                          const char* desc,
+                                          void (*func)())
+{
+  return (CCUnitTestFunc*) ccunit_newTestCase (name, desc, func);
+}
+
 void ccunit_deleteTestCase (CCUnitTestCase* testCase)
 {
   if (!testCase)
@@ -53,4 +60,9 @@ void ccunit_deleteTestCase (CCUnitTestCase* testCase)
   free (testCase);
 }
 
+inline void ccunit_deleteTestFunc (CCUnitTestFunc* testFunc)
+{
+  ccunit_deleteTestCase ((CCUnitTestCase*)testFunc);
+}
+
 /** @} */