From 72c9cb2f20fb3a83a5bc9c3245d524bfae2ef3ee Mon Sep 17 00:00:00 2001 From: Sverre Nystad <89105607+SverreNystad@users.noreply.github.com> Date: Tue, 9 Apr 2024 04:15:26 +0200 Subject: [PATCH] test: correct test_hard_drop in test_actions.py --- test/game/test_actions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/game/test_actions.py b/test/game/test_actions.py index 6e08661..55b8e8c 100644 --- a/test/game/test_actions.py +++ b/test/game/test_actions.py @@ -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], @@ -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): @@ -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