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.
18 lines
453 B
18 lines
453 B
#ifdef TEST
|
|
#include "unity.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include "Springer.h"
|
|
#include "Schachbrett.h"
|
|
#include "Spieler.h"
|
|
|
|
void test_istzugerlaubt_Springer_LegalMove(void) {
|
|
char **Brett = Schachbrett_erstellen();
|
|
|
|
// Teste legaler Zug für weißen Springer : b1 zu a3
|
|
TEST_ASSERT_TRUE(istzugerlaubt_Springer(Brett, 1, 0, 0, 2, PLAYER_WHITE));
|
|
|
|
Schachbrettspeicher_freigeben(Brett);
|
|
}
|
|
#endif // TEST
|