minor edits and testing of initial TestState value

This commit is contained in:
jlamothe
2023-11-07 23:44:53 +00:00
parent 9f26846a3d
commit e9ed464b60
3 changed files with 124 additions and 10 deletions

View File

@@ -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
);