forked from freudenreichan/info2Praktikum-Wortsalat
gametest.c geändert
This commit is contained in:
1 parent
9b704552cc
commit
1d87ea69bc
2 files changed
+2
-7
No files matched your search
@@ -14,12 +14,7 @@ int main(void)
|
|||||||
|
|
||||||
unsigned int wordCount = sizeof(words) / sizeof(words[0]);
|
unsigned int wordCount = sizeof(words) / sizeof(words[0]);
|
||||||
|
|
||||||
int placedWords = createWordSalad(
|
int placedWords = createWordSalad(salad, MAX_SEARCH_FIELD_LEN, words, wordCount);
|
||||||
salad,
|
|
||||||
MAX_SEARCH_FIELD_LEN,
|
|
||||||
words,
|
|
||||||
wordCount
|
|
||||||
);
|
|
||||||
|
|
||||||
printf("Placed words: %d\n", placedWords);
|
printf("Placed words: %d\n", placedWords);
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ void print_test_result(int result) {
|
|||||||
printf(RED "FAILED\n" RESET);
|
printf(RED "FAILED\n" RESET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------- Tests für input.c ----------
|
// ---------- Tests für input.c ----------
|
||||||
void test_readWords_simple(void) {
|
void test_readWords_simple(void) {
|
||||||
FILE *f = fopen("testwords_simple.txt", "r");
|
FILE *f = fopen("testwords_simple.txt", "r");
|
||||||
|
|||||||
Reference in new issue
Block a user