diff --git a/test/Hangman/test_playHangman.c b/test/Hangman/test_playHangman.c index cfc47b0..3f7ba5a 100644 --- a/test/Hangman/test_playHangman.c +++ b/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"); } \ No newline at end of file