From 618a1ca2299618123a32d5b8d564ac392d655c28 Mon Sep 17 00:00:00 2001 From: fdai7472 Date: Tue, 6 Feb 2024 14:27:19 +0100 Subject: [PATCH] Test zu ASCII art generierung geschrieben --- src/test/c/Stefan/test_blackjack.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/c/Stefan/test_blackjack.c b/src/test/c/Stefan/test_blackjack.c index 203978c..f65013b 100644 --- a/src/test/c/Stefan/test_blackjack.c +++ b/src/test/c/Stefan/test_blackjack.c @@ -213,3 +213,17 @@ void test_generate_char_for_card_ace() { TEST_ASSERT_EQUAL_CHAR(expected_result, actual_result); } + +void test_generate_char_for_card_9() { + + //arrange + int cardValue = 9; + char expected_result = '9'; + + //act + char actual_result = generateCardAscii(cardValue); + + //assert + TEST_ASSERT_EQUAL_CHAR(expected_result, actual_result); + +}