Browse Source

test_dropPiece_ValidMove

remotes/origin/Ahmad
fdai7726 11 months ago
parent
commit
7292f053a2
  1. 17
      src/test/c/test_VierGewinnt.c
  2. 28
      src/test/c/test_test.c

17
src/test/c/test_VierGewinnt.c

@ -0,0 +1,17 @@
#include "unity.h"
#include "VierGewinnt.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_dropPiece_ValidMove(void) {
char board[6][7];
initializeBoard(board);
TEST_ASSERT_EQUAL_INT(1, dropPiece(board, 3, 'X'));
}

28
src/test/c/test_test.c

@ -1,28 +0,0 @@
#ifdef TEST
#include "unity.h"
#include "test.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_test__return_5(void)
{
/* arrange */
int expected = 5;
int actual;
/* act */
actual = return_5();
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
#endif // TEST
Loading…
Cancel
Save