Browse Source

Test, bei Gleichstand verliert Spieler bei Blackjack

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

14
src/test/c/Stefan/test_blackjack.c

@ -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

Loading…
Cancel
Save