/* -*- C -*- */
-/* Copyright (C) 2003 TSUTSUMI Kikuo.
+/* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
This file is part of the CCUnit Library.
The CCUnit Library is free software; you can redistribute it and/or
#define CCUNITTESTFAILURE_H
#include <ccunit/CCUnitConfig.h>
-#include <ccunit/CCUnitTestCase.h>
+#include <ccunit/CCUnitTestFunc.h>
/**
* @ingroup ModuleHierarchy
const char* condstr; /**< test condition */
const char* expect; /**< expect value as string */
const char* actual; /**< actual value as string */
- const CCUnitTestCase* testCase; /**< test case object */
+ const CCUnitTestFunc* testFunc; /**< test function object */
} CCUnitTestFailure;
/**
/* -*- mode: C; -*- */
-/* Copyright (C) 2003 TSUTSUMI Kikuo.
+/* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
This file is part of the CCUnit Library.
The CCUnit Library is free software; you can redistribute it and/or
#include <ccunit/CCUnitConfig.h>
#include <ccunit/CCUnitTestFailure.h>
-#include <ccunit/CCUnitTestFixture.h>
+#include <ccunit/CCUnitTestFunc.h>
/**
* @ingroup ModuleHierarchy
/**
* A test started.
*/
- void (*startTest) (CCUnitTestListener* listener, CCUnitTestCase* testCase);
+ void (*startTest) (CCUnitTestListener* listener, CCUnitTestFunc* testFunc);
/**
* A test ended.
*/
- void (*endTest) (CCUnitTestListener* listener, CCUnitTestCase* testCase);
+ void (*endTest) (CCUnitTestListener* listener, CCUnitTestFunc* testFunc);
};
/** @} */
-/* Copyright (C) 2003 TSUTSUMI Kikuo.
+/* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
This file is part of the CCUnit Library.
The CCUnit Library is free software; you can redistribute it and/or
* @param listener notification listener.
* @param test starting test case
*/
-static void startTest (CCUnitTestListener* listener, CCUnitTestCase* test)
+static void startTest (CCUnitTestListener* listener, CCUnitTestFunc* test)
{
CCUnitTestRunner* runner = (CCUnitTestRunner*)listener;
fputc ('.', runner->ofp);
* @param listener notification listener.
* @param test ended test case
*/
-static void endTest (CCUnitTestListener* listener, CCUnitTestCase* test)
+static void endTest (CCUnitTestListener* listener, CCUnitTestFunc* test)
{
}
{
fprintf (runner->ofp, "%s:%u: %s:\n\t%s\n",
f->file, f->line,
- f->testCase != NULL ? f->testCase->desc : "",
+ f->testFunc != NULL ? f->testFunc->desc : "",
f->condstr);
if (f->expect || f->actual)
fprintf (runner->ofp, "\texpect: %s\n\tactual: %s\n", f->expect, f->actual);