Browse Source

Test zu ASCII art generierung geschrieben

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
618a1ca229
  1. 14
      src/test/c/Stefan/test_blackjack.c

14
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); 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);
}
Loading…
Cancel
Save