Browse Source

weitere Tests zu Gewinnberechnung bei max win

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
81e7376303
  1. 42
      src/test/c/Stefan/test_slot_machine.c

42
src/test/c/Stefan/test_slot_machine.c

@ -209,6 +209,48 @@ void test_9_A_max_win_bet_equals_10() {
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
void test_9_B_max_win_bet_equals_10() {
//arrange
char testSymbols[] = {"BBBBBBBBB"};
int expectedResult = 1500;
//act
int actualResult = getWinnings(testSymbols, 10);
//assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
void test_9_C_max_win_bet_equals_10() {
//arrange
char testSymbols[] = {"CCCCCCCCC"};
int expectedResult = 3000;
//act
int actualResult = getWinnings(testSymbols, 10);
//assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
void test_9_D_max_win_bet_equals_10() {
//arrange
char testSymbols[] = {"DDDDDDDDD"};
int expectedResult = 6000;
//act
int actualResult = getWinnings(testSymbols, 10);
//assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
void test_3_B_3_C_3_D_won_bet_equals_10() {
//arrange

Loading…
Cancel
Save