From 75bebcd37970baf8bb0a7769b42c0094a5aeea0e Mon Sep 17 00:00:00 2001 From: Sverre Nystad <89105607+SverreNystad@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:36:42 +0200 Subject: [PATCH] test: correct wrong test --- test/game/test_board.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/game/test_board.py b/test/game/test_board.py index c165356..fc8ed01 100644 --- a/test/game/test_board.py +++ b/test/game/test_board.py @@ -15,6 +15,7 @@ # # assert len(possible_moves) == 9 + def test_board_equal_for_the_same_object(): board1 = Board() assert board1 == board1 @@ -186,15 +187,16 @@ def test_transition_model_x_direction(): def test_transition_model_complex_target(): current_board: Board = Board() target_board: Board = copy.deepcopy(current_board) - actions = [ + actual_actions = [ + Action.ROTATE_CLOCKWISE, Action.MOVE_RIGHT, Action.MOVE_RIGHT, Action.MOVE_RIGHT, - Action.ROTATE_CLOCKWISE, ] - for action in actions: + for action in actual_actions: target_board.doAction(action) actions = transition_model(current_board, target_board) assert isinstance(actions, list) - assert len(actions) == len(actions) + assert len(actions) == len(actual_actions) + assert actions == actual_actions