Skip to content

Commit

Permalink
test: correct test_hard_drop in test_actions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Apr 9, 2024
1 parent f5c92f6 commit 72c9cb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/game/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_move_left():
assert board.block == expected_block


def test_drop():
def test_hard_drop():
board: Board = Board()
expected_board = [
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
Expand All @@ -43,8 +43,6 @@ def test_drop():
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
]
for _ in range(board.rows - 1):
board.block.moveDown()

board.doAction(Action.DROP)
for board_row, expected_row in zip(board.board, expected_board):
Expand Down Expand Up @@ -145,6 +143,7 @@ def test_try_to_move_block_out_of_bound_right():

def test_try_to_rotate_block_out_of_bound():
board: Board
# TODO: CREATE THIS TEST test_try_to_rotate_block_out_of_bound
pass


Expand Down

0 comments on commit 72c9cb2

Please sign in to comment.