Browse Source

test initializeHangman

remotes/origin/Saba
Saba Fazlali 11 months ago
parent
commit
994e9f666b
  1. 8
      test/Hangman/test_playHangman.c

8
test/Hangman/test_playHangman.c

@ -40,4 +40,12 @@ void test_toLower() {
result = toLower('?');
printf("Actual Output: '%c'\n", result);
assert(result == '?');
}
void test_initializeHangman() {
char wordToGuess[] = "hangman";
char currentGuess[8];
initializeHangman(wordToGuess, currentGuess);
assert(strcmp(currentGuess, "_______") == 0);
printf("initializeHangman test passed!\n");
}
Loading…
Cancel
Save