implemented single_test_context_with()

This commit is contained in:
jlamothe
2023-11-18 16:38:00 +00:00
parent 6c191d8405
commit bd535791d7
2 changed files with 49 additions and 0 deletions

14
9unit.h
View File

@@ -109,6 +109,20 @@ extern void test_context_with(
void * // the value being passed in
);
// Runs a single test with a context and input
extern void single_test_context_with(
TestState *, // the state
const char *, // the context
// the test
TestResult (*)(
TestState *, // the state
void * // the value being passed
),
void * // the value being passed
);
// Runs a test to check a value
extern void check_value(
TestState *, // the current test state