def test_moves_backward( self, direction: Direction, initial: Coordinates, final: Coordinates, ) -> None: rover = Rover(initial, direction) rover.move_backward() assert rover.position() == final
def test_starts_at_the_given_position_and_facing_direction(self) -> None: rover = Rover(Coordinates(1, 3), Direction.north()) assert rover.position() == Coordinates(1, 3) assert rover.direction() == Direction.north()