|
@ -101,7 +101,7 @@ void test_runRaetselTestBJ(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int result = blackjack(spieler, geber, janein); |
|
|
int result = blackjack(spieler, geber, janein); |
|
|
TEST_ASSERT_EQUAL_INT(0, result); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void test_runRaetselTestBJif(void){ |
|
|
void test_runRaetselTestBJif(void){ |
|
@ -137,7 +137,27 @@ void test_runRaetselTestBJifende(void){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int result = blackjack(spieler, geber, janein); |
|
|
int result = blackjack(spieler, geber, janein); |
|
|
TEST_ASSERT_EQUAL_INT(0, result); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_runRaetselTestBJifende1(void){ |
|
|
|
|
|
|
|
|
|
|
|
int spieler = 0; |
|
|
|
|
|
int geber = 0; |
|
|
|
|
|
int janein = 0; |
|
|
|
|
|
|
|
|
|
|
|
userInput_ExpectAndReturn(1); |
|
|
|
|
|
randnum_ExpectAndReturn(10); |
|
|
|
|
|
randnum_ExpectAndReturn(8); |
|
|
|
|
|
userInput_ExpectAndReturn(1); |
|
|
|
|
|
randnum_ExpectAndReturn(9); |
|
|
|
|
|
randnum_ExpectAndReturn(7); |
|
|
|
|
|
userInput_ExpectAndReturn(1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int result = blackjack(spieler, geber, janein); |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|