|
|
@ -219,6 +219,34 @@ void test_3_B_3_C_3_D_won_bet_equals_10() { |
|
|
|
//act |
|
|
|
int actualResult = getWinnings(testSymbols, 10); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_3_A_3_C_3_D_won_bet_equals_10() { |
|
|
|
|
|
|
|
//arrange |
|
|
|
char testSymbols[] = {"AAACCCDDD"}; |
|
|
|
|
|
|
|
int expectedResult = 330; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = getWinnings(testSymbols, 10); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_3_A_3_B_3_C_won_bet_equals_10() { |
|
|
|
|
|
|
|
//arrange |
|
|
|
char testSymbols[] = {"AAABBBCCC"}; |
|
|
|
|
|
|
|
int expectedResult = 180; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = getWinnings(testSymbols, 10); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |