|
|
@ -38,4 +38,19 @@ void test_subtract_bet_5_from_balance_10() { |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void test_no_rows_won_bet_equals_10() { |
|
|
|
|
|
|
|
//arrange |
|
|
|
char testSymbols[] = {"AABAACAAD"}; |
|
|
|
|
|
|
|
|
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = getWinnings(testSymbols, 10); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |