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