|
|
@ -362,4 +362,19 @@ void test_subtract_bet_1_from_balance_100000() { |
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expected_result, actual_result); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void test_subtract_bet_10_from_balance_1() { |
|
|
|
|
|
|
|
//arrange |
|
|
|
int bet = 10; |
|
|
|
int balance = 1; |
|
|
|
int expected_result = 0; |
|
|
|
|
|
|
|
//act |
|
|
|
int actual_result = subtractBetFromBalanceBJ(bet, balance); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expected_result, actual_result); |
|
|
|
|
|
|
|
} |