From 930ecb25a8ec887e29f50dc4a17e8741b0fa4498 Mon Sep 17 00:00:00 2001 From: fdai7472 Date: Wed, 7 Feb 2024 11:37:20 +0100 Subject: [PATCH] Test, bei Gleichstand verliert Spieler bei Blackjack --- 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 6a9dcd6..6974abd 100644 --- a/src/test/c/Stefan/test_blackjack.c +++ b/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() { //arrange