implemented run_test_with()

This commit is contained in:
jlamothe
2023-11-17 23:35:02 +00:00
parent 37ce34b160
commit 6c191d8405
2 changed files with 41 additions and 7 deletions
+7
View File
@@ -67,6 +67,13 @@ extern void run_test(
TestResult (*)(TestState *) // the test to run
);
// Runs a single test with an arbitrary input
extern void run_test_with(
TestState *, // the state
TestResult (*)(TestState *, void *), // the test
void * // the value to pass in
);
// Runs multiple tests, displaying a summary at the end
extern void run_tests(
// runs the tests and updates a provided TestState