|
@ -228,6 +228,20 @@ void test_calculate_if_you_won_20_vs_21() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_calculate_if_you_won_21_vs_21() { |
|
|
|
|
|
|
|
|
|
|
|
//arrange |
|
|
|
|
|
int userCardsTotal = 21; |
|
|
|
|
|
int dealerCardsTotal = 21; |
|
|
|
|
|
|
|
|
|
|
|
//act |
|
|
|
|
|
bool result = calculateIfYouWon(userCardsTotal, dealerCardsTotal); |
|
|
|
|
|
|
|
|
|
|
|
//assert |
|
|
|
|
|
TEST_ASSERT_FALSE(result); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_generate_char_for_card_2() { |
|
|
void test_generate_char_for_card_2() { |
|
|
|
|
|
|
|
|
//arrange |
|
|
//arrange |
|
|