示例#1
0
def test_turn_right(start, moves, tinput, expected):
    rov = rover.Rover(start, moves)
    rov.facing = tinput
    assert rov.turnR() == expected
示例#2
0
def test_makeitso(start, moves, expected):
    rov = rover.Rover(start, moves)
    rov.makeitso()
    assert (rov.x, rov.y, rov.facing) == expected
示例#3
0
def test_start_parse(start, moves, expected):
    rov = rover.Rover(start, moves)
    assert rov.starter() == expected
示例#4
0
def test_drive(start, moves, move, expected):
    rov = rover.Rover(start, moves)
    assert rov.drive(move) == expected