refactored test_context_with()

This commit is contained in:
jlamothe
2023-11-19 04:40:19 +00:00
parent 1c4fb1e87d
commit ad4abe68e0
2 changed files with 27 additions and 26 deletions

14
9unit.h
View File

@@ -94,13 +94,6 @@ extern void test_context(
void (*)(TestState *) // the actual test
);
// Runs a single test with a context label
extern void single_test_context(
TestState *, // the current state
const char *, // a description of the 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
@@ -109,6 +102,13 @@ extern void test_context_with(
void * // the value being passed in
);
// Runs a single test with a context label
extern void single_test_context(
TestState *, // the current state
const char *, // a description of the context
TestResult (*)(TestState *) // the actual test
);
// Runs a single test with a context and input
extern void single_test_context_with(
TestState *, // the state