Skip to content

Commit

Permalink
test: correct wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Apr 9, 2024
1 parent 98f52a0 commit 75bebcd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/game/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
# assert len(possible_moves) == 9


def test_board_equal_for_the_same_object():
board1 = Board()
assert board1 == board1
Expand Down Expand Up @@ -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

0 comments on commit 75bebcd

Please sign in to comment.