minor edits and testing of initial TestState value
This commit is contained in:
7
9unit.h
7
9unit.h
@@ -32,9 +32,10 @@ struct TestState
|
||||
int run; // number of tests run
|
||||
int passed; // number of successful tests
|
||||
int failed; // number of failed tests
|
||||
int postponed; // number of postponed tests
|
||||
int pending; // number of pending tests
|
||||
TestLogEntry *first_log; // the first log entry
|
||||
TestLogEntry *last_log; //the last log entry
|
||||
void *ptr; // used for passing data between tests
|
||||
};
|
||||
|
||||
struct TestLogEntry
|
||||
@@ -48,7 +49,7 @@ typedef enum TestResult
|
||||
{
|
||||
test_success, // the test succeeded
|
||||
test_failure, // the test failed
|
||||
test_postponed // the test was postponed
|
||||
test_pending // the test is pending
|
||||
} TestResult;
|
||||
|
||||
// Runs a single test
|
||||
@@ -65,7 +66,7 @@ extern void run_tests(
|
||||
|
||||
// Adds an entry to the log that is displayed after the tests have
|
||||
// completed
|
||||
extern void append_log(
|
||||
extern void append_test_log(
|
||||
TestState *, // the current state
|
||||
const char * // the message to append
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user