示例#1
0
def test_move_car_right():
    car = Car(5, 5, '>')
    assert car.next() == (6, 5)
示例#2
0
def test_move_car_up():
    car = Car(5, 5, '^')
    assert car.next() == (5, 4)
示例#3
0
def test_move_car_down():
    car = Car(5, 5, 'v')
    assert car.next() == (5, 6)
示例#4
0
def test_move_car_left():
    car = Car(5, 5, '<')
    assert car.next() == (4, 5)