|
@ -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); |
|
|
|
|
|
} |