From 491c8249671bd16655655219565eb0877d16e054 Mon Sep 17 00:00:00 2001 From: Aimee Reincke Date: Mon, 30 Jan 2023 10:35:25 +0100 Subject: [PATCH] added Tic Tac Toe files --- src/c/ticTacToe.c | 10 ++++++++++ src/c/ticTacToe.h | 6 ++++++ test/c/test_ticTacToe.c | 26 ++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 src/c/ticTacToe.c create mode 100644 src/c/ticTacToe.h create mode 100644 test/c/test_ticTacToe.c diff --git a/src/c/ticTacToe.c b/src/c/ticTacToe.c new file mode 100644 index 0000000..6d1d931 --- /dev/null +++ b/src/c/ticTacToe.c @@ -0,0 +1,10 @@ +#include +#include +#include + +#include "ticTacToe.h" + + +int something(int a){ + return a; +} \ No newline at end of file diff --git a/src/c/ticTacToe.h b/src/c/ticTacToe.h new file mode 100644 index 0000000..964ee03 --- /dev/null +++ b/src/c/ticTacToe.h @@ -0,0 +1,6 @@ +#ifndef TICTACTOE_H +#define TICTACTOE_H + +int something(int a); + +#endif \ No newline at end of file diff --git a/test/c/test_ticTacToe.c b/test/c/test_ticTacToe.c new file mode 100644 index 0000000..c76d3f9 --- /dev/null +++ b/test/c/test_ticTacToe.c @@ -0,0 +1,26 @@ +#ifdef TEST +#include "unity.h" +#include "ticTacToe.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_runExampleTest(void) +{ + /* arrange */ + int result; + int input = 1; + + /* act */ + result = something(input); + + /* assert */ + TEST_ASSERT_EQUAL_INT(1, result); +} + +#endif // TEST \ No newline at end of file