|
@ -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); |
|
|
|
|
|
|
|
|
|
|
|
} |