You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
565 B

#include "unity.h"
#include "Spiellogik.h"
#include <stdlib.h>
void setUp(void){
}
void tearDown(void){
}
void test_test1(void){
int result = probe(2);
TEST_ASSERT_EQUAL_INT(2, result);
}
void test_feldFrei_Verhalten_bei_belegtem_Feld(void){
int realU[N][N];
realU[11][12] = 1;
int result = feldFrei( realU, 11,12);
TEST_ASSERT_EQUAL_INT(0 , result);
}
void test_feldFrei_Verhalten_bei_freiem_Feld(void){
int realU[N][N];
realU[11][12] = 0;
int result = feldFrei(realU, 11, 12);
TEST_ASSERT_EQUAL_INT(1, result);
}