Browse Source

added Tic Tac Toe files

remotes/origin/ticTacToe
Aimee Reincke 2 years ago
parent
commit
491c824967
  1. 10
      src/c/ticTacToe.c
  2. 6
      src/c/ticTacToe.h
  3. 26
      test/c/test_ticTacToe.c

10
src/c/ticTacToe.c

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ticTacToe.h"
int something(int a){
return a;
}

6
src/c/ticTacToe.h

@ -0,0 +1,6 @@
#ifndef TICTACTOE_H
#define TICTACTOE_H
int something(int a);
#endif

26
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
Loading…
Cancel
Save