created initTestState

This commit is contained in:
jlamothe 2023-11-06 19:26:55 +00:00
parent 1a6782f644
commit b9c7fa84be
2 changed files with 14 additions and 0 deletions

12
9unit.c
View File

@ -22,4 +22,16 @@
#include "9unit.h"
void
initTestState(TestState *s)
{
if(s)
{
s->run = 0;
s->success = 0;
s->failure = 0;
s->postponed = 0;
}
}
//jl

View File

@ -34,4 +34,6 @@ typedef enum TestResult
test_pending
} TestResult;
extern void initTestState(TestState *);
//jl