changed order of params for check_value()
This commit is contained in:
parent
a7351b5667
commit
7818e3d646
4
9unit.c
4
9unit.c
|
@ -187,9 +187,9 @@ single_test_context(
|
||||||
void check_value(
|
void check_value(
|
||||||
TestState *s,
|
TestState *s,
|
||||||
const char *context,
|
const char *context,
|
||||||
|
void (*test)(TestState *, void *, void *),
|
||||||
void *chk_val,
|
void *chk_val,
|
||||||
void *ref_val,
|
void *ref_val
|
||||||
void (*test)(TestState *, void *, void *)
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!(s && test)) return;
|
if (!(s && test)) return;
|
||||||
|
|
11
9unit.h
11
9unit.h
|
@ -98,13 +98,16 @@ extern void single_test_context(
|
||||||
extern void check_value(
|
extern void check_value(
|
||||||
TestState *, // the current test state
|
TestState *, // the current test state
|
||||||
const char *, // a description of the context
|
const char *, // a description of the context
|
||||||
void *, // the value being checked
|
|
||||||
void *, // the reference value
|
// the test function
|
||||||
void (*)( // the test function
|
void (*)(
|
||||||
TestState *,
|
TestState *,
|
||||||
void *, // the check value
|
void *, // the check value
|
||||||
void * // the reference value
|
void * // the reference value
|
||||||
)
|
),
|
||||||
|
|
||||||
|
void *, // the value being checked
|
||||||
|
void * // the reference value
|
||||||
);
|
);
|
||||||
|
|
||||||
//jl
|
//jl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user