def test_robot_change_direction(current_direction, towards, new_direction): """ Assert that robot rotates correctly according to given rotation. """ robot = Robot(current_direction, None, "tester") robot.rotate(towards) assert robot.direction == new_direction
def test_robot_change_direction(current_direction, towards, new_direction): """ Assert that robot rotates correctly according to given rotation. """ robot = Robot(current_direction, None, "bender") robot.rotate(towards, State.get_start_state("maps/test_maps/test_3.json")) assert robot.direction == new_direction