From 7818e3d6469389e0daae566e727045aa5047c862 Mon Sep 17 00:00:00 2001 From: jlamothe Date: Thu, 16 Nov 2023 22:41:42 +0000 Subject: [PATCH] changed order of params for check_value() --- 9unit.c | 4 ++-- 9unit.h | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/9unit.c b/9unit.c index bd2cd62..defe2aa 100644 --- a/9unit.c +++ b/9unit.c @@ -187,9 +187,9 @@ single_test_context( void check_value( TestState *s, const char *context, + void (*test)(TestState *, void *, void *), void *chk_val, - void *ref_val, - void (*test)(TestState *, void *, void *) + void *ref_val ) { if (!(s && test)) return; diff --git a/9unit.h b/9unit.h index 11ceaf8..b69f54f 100644 --- a/9unit.h +++ b/9unit.h @@ -98,13 +98,16 @@ extern void single_test_context( extern void check_value( TestState *, // the current test state const char *, // a description of the context - void *, // the value being checked - void *, // the reference value - void (*)( // the test function + + // the test function + void (*)( TestState *, void *, // the check value void * // the reference value - ) + ), + + void *, // the value being checked + void * // the reference value ); //jl