* $Id$
*/
-#include <ccunit/CCUnit.h>
+#include <ccunit/CCUnitTestCase.h>
+#include <ccunit/CCUnitTestSuite.h>
+#include <ccunit/CCUnitTestRunner.h>
extern void setUp_test_complex ();
extern void tearDown_test_complex ();
int main ()
{
CCUnitTestCase* testCase;
- CCUnitTestResult* result;
- bool success;
+ CCUnitTestSuite* suite;
+ CCUnitTestRunner* runner;
+ int ret;
testCase = ccunit_newTestCase ("complex test");
ccunit_addNewTestFunc (testCase,
"setUp_test_complex",
"test_complex_equals",
"complex equals test",
test_complex_equals);
- result = ccunit_runTestCase (testCase);
- success = ccunit_wasSuccessful (result);
- return success ? 0 : -1;
+ suite = ccunit_newTestSuite ("complex test suite");
+ ccunit_addTestCase (suite, testCase);
+ runner = ccunit_newTestRunner (stdout);
+ ret = ccunit_runTestRunner (runner, suite);
+ ccunit_deleteTestRunner (runner);
+ ccunit_deleteTestSuite (suite);
+ return ret;
}