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.
29 lines
415 B
29 lines
415 B
#ifdef TEST
|
|
|
|
#include "unity.h"
|
|
|
|
#include "schach.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_print_Schachfeld(void){
|
|
/* arrange */
|
|
char expected = 'S';
|
|
int x = 8;
|
|
int y = 8;
|
|
|
|
/* act */
|
|
char** Spielfeld = create_Schachfeld(x, y);
|
|
|
|
/* assert */
|
|
TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][7]);
|
|
TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[1][0]);
|
|
}
|
|
|
|
#endif // TEST
|