|
@ -209,6 +209,48 @@ void test_9_A_max_win_bet_equals_10() { |
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
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() { |
|
|
void test_3_B_3_C_3_D_won_bet_equals_10() { |
|
|
|
|
|
|
|
|
//arrange |
|
|
//arrange |
|
|