implemented test_context_with()
This commit is contained in:
8
9unit.h
8
9unit.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user