From 1a6782f644f88f2bb0d04c02f40460c85a16dc16 Mon Sep 17 00:00:00 2001 From: jlamothe Date: Mon, 6 Nov 2023 18:59:19 +0000 Subject: [PATCH] added missing header --- 9unit.c | 4 ++++ 9unit.h | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 9unit.h diff --git a/9unit.c b/9unit.c index be3cedf..cf815bf 100644 --- a/9unit.c +++ b/9unit.c @@ -18,4 +18,8 @@ */ +#include + +#include "9unit.h" + //jl diff --git a/9unit.h b/9unit.h new file mode 100644 index 0000000..da8aedf --- /dev/null +++ b/9unit.h @@ -0,0 +1,37 @@ +/* + + 9unit + Copyright (C) 2023 Jonathan Lamothe + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +*/ + +// Tracks information about the tests being run. +typedef struct TestState +{ + int run; // number of tests run + int success; // number of successful tests + int failure; // number of failed tests + int postponed; // number of postponed tests +} TestState; + +typedef enum TestResult +{ + test_success, + test_failure, + test_pending +} TestResult; + +//jl