implemented test_context_with()

This commit is contained in:
jlamothe
2023-11-17 21:30:52 +00:00
parent 7818e3d646
commit 5d67b7aeb8
2 changed files with 46 additions and 1 deletions

View File

@@ -94,6 +94,14 @@ extern void single_test_context(
TestResult (*)(TestState *) // the actual test
);
// Runs a test with a context and an additional input
extern void test_context_with(
TestState *, // the current state
const char *, // a description of the context
void (*)(TestState *, void *), // the test function
void * // the value being passed in
);
// Runs a test to check a value
extern void check_value(
TestState *, // the current test state