Browse Source

Tests, falls 3 Reihen gewinnen

remotes/origin/dev
fdai7472 11 months ago
parent
commit
4e72b760f0
  1. 28
      src/test/c/Stefan/test_slot_machine.c

28
src/test/c/Stefan/test_slot_machine.c

@ -194,3 +194,31 @@ void test_3_C_3_D_won_bet_equals_10() {
//assert //assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
} }
void test_9_A_won_bet_equals_10() {
//arrange
char testSymbols[] = {"AAAAAAAAA"};
int expectedResult = 90;
//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
char testSymbols[] = {"BBBCCCDDD"};
int expectedResult = 350;
//act
int actualResult = getWinnings(testSymbols, 10);
//assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
Loading…
Cancel
Save