Cleaning more code.
This commit is contained in:
@ -54,9 +54,9 @@ void test_pokerResetRound_should_ResetThePlayers(void) {
|
||||
|
||||
for(i = 0; i < poker.playerCount; i++) {
|
||||
TEST_ASSERT_EQUAL_UINT8(0, poker.players[i].cardCount);
|
||||
TEST_ASSERT_EQUAL_UINT8(0, poker.players[i].timesRaised);
|
||||
TEST_ASSERT_EQUAL_INT32(0, poker.players[i].currentBet);
|
||||
TEST_ASSERT_EQUAL_INT32(100, poker.players[i].chips);
|
||||
TEST_ASSERT_EQUAL_INT32(100, poker.players[i].chips);
|
||||
TEST_ASSERT_BITS_LOW(POKER_PLAYER_STATE_FOLDED, poker.players[i].state);
|
||||
TEST_ASSERT_BITS_LOW(
|
||||
POKER_PLAYER_STATE_HAS_BET_THIS_ROUND, poker.players[i].state
|
||||
@ -288,6 +288,7 @@ void test_pokerPlayerAdd_should_ResetThePlayer(void) {
|
||||
TEST_ASSERT_EQUAL_INT32(0, player->chips);
|
||||
TEST_ASSERT_EQUAL_INT32(0, player->currentBet);
|
||||
TEST_ASSERT_EQUAL_UINT8(0, player->cardCount);
|
||||
TEST_ASSERT_EQUAL_UINT8(0, poker.players[i].timesRaised);
|
||||
TEST_ASSERT_EQUAL_UINT8(POKER_PLAYER_STATE_OUT, player->state);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user