def test_turn_right(start, moves, tinput, expected): rov = rover.Rover(start, moves) rov.facing = tinput assert rov.turnR() == expected
def test_makeitso(start, moves, expected): rov = rover.Rover(start, moves) rov.makeitso() assert (rov.x, rov.y, rov.facing) == expected
def test_start_parse(start, moves, expected): rov = rover.Rover(start, moves) assert rov.starter() == expected
def test_drive(start, moves, move, expected): rov = rover.Rover(start, moves) assert rov.drive(move) == expected