@ -6,11 +6,7 @@
#include <stdbool.h>
#include <ctype.h>
#define LISTSIZE 30
#define MAX_WORD_LENGTH 30
#define STAGENUM 7
#define ASCII_ART_SIZE 1000
#define POSSIBLE_TRYS 6
char wordlist[LISTSIZE][MAX_WORD_LENGTH] = {
@ -2,6 +2,11 @@
#ifndef HANGMAN_H
#define HANGMAN_H
void hangman();
char* getWordFromList(int);
@ -43,7 +43,7 @@ void test_getWordFromList_Kleiderschrank_5()
void test_getWordFromList_IndexOutOfList()
{
//arrange
int pos = 60;
int pos = LISTSIZE+1;
char expectedResult[] = "Index nicht vorhanden";
//act
char actualResult[30];