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.
44 lines
824 B
44 lines
824 B
#ifdef TEST
|
|
#include "unity.h"
|
|
#include <stdlib.h>
|
|
#include "Schachbrett.h"
|
|
#include "Historie.h"
|
|
#include "En_Passaut.h"
|
|
#include "Bauer.h"
|
|
|
|
void setUp(void) {
|
|
}
|
|
|
|
void tearDown(void) {
|
|
}
|
|
|
|
void test_En_Passaut_Weiss(void) {
|
|
|
|
/* void test_hinzufuegen_historie(void) {
|
|
int MAX_ZUEGE = 70;
|
|
int ZUG_INFO = 5;
|
|
|
|
// Historie erstellen
|
|
int** meineHistorie = erstellen_historie();
|
|
|
|
// Testdaten
|
|
int startX = 1;
|
|
int startY = 2;
|
|
int endX = 3;
|
|
int endY = 4;
|
|
Player currentPlayer = PLAYER_WHITE;
|
|
int anzahl_Zuege = 0;
|
|
|
|
// Züge zur Historie hinzufügen
|
|
hinzufuegen_historie(meineHistorie, startX, startY, endX, endY, currentPlayer, anzahl_Zuege);
|
|
|
|
|
|
// Speicher freigeben
|
|
for (int i = 0; i < MAX_ZUEGE; i++) {
|
|
free(meineHistorie[i]);
|
|
}
|
|
|
|
}
|
|
*/
|
|
}
|
|
#endif // TEST
|