From 2e3877006116398900eb33d693ebe3f6afad3738 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Mon, 11 Oct 2021 22:03:11 -0700 Subject: [PATCH] Fixed missing headers for test --- .github/workflows/test.yml | 1 - test/tests.c | 9 ++++----- test/tests.h | 12 ++++++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 test/tests.h diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 189d59a3..f7e6162a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,5 +28,4 @@ jobs: - name: Test run: | - ls build/ ./build/test/tests \ No newline at end of file diff --git a/test/tests.c b/test/tests.c index c8f099af..ce0e414a 100644 --- a/test/tests.c +++ b/test/tests.c @@ -5,12 +5,11 @@ * https://opensource.org/licenses/MIT */ -#include "poker/card.h" -#include "poker/poker.h" +#include "tests.h" -int main() { +int32_t main() { return ( - test_card() == 0 && - test_poker() == 0 + test_card() || + test_poker() ); } \ No newline at end of file diff --git a/test/tests.h b/test/tests.h new file mode 100644 index 00000000..19761c5b --- /dev/null +++ b/test/tests.h @@ -0,0 +1,12 @@ +/** + * Copyright (c) 2021 Dominic Masters + * + * This software is released under the MIT License. + * https://opensource.org/licenses/MIT + */ + +#pragma once +#include "poker/card.h" +#include "poker/poker.h" + +int32_t main(); \ No newline at end of file