implemented run_test_compare()

This commit is contained in:
jlamothe
2023-11-19 22:14:21 +00:00
committed by Jonathan Lamothe
parent 01e01243dd
commit 55926ec0d8
2 changed files with 50 additions and 0 deletions

15
9unit.h
View File

@@ -74,6 +74,21 @@ extern void run_test_with(
void * // the value to pass in
);
// Runs a single test passing in two values to be compared
extern void run_test_compare(
TestState *, // the current state
// the test to be run
TestResult (*test)(
TestState *, // the current state
void *, // the first value
void * // the second value
),
void *, // the first value
void * // the second value
);
// Creates an initial TestState, passes it to the supplied function,
// and displays the resulting log and summary
extern void run_tests(void (*)(TestState *));