def test_car_appears_over_dirt_and_pavement(col):
    bumps = [Bump(0, 2)]
    headlight_range = 4
    c = Car(col, 1)
    patient = Road(headlight_range, c, bumps).board()
    assert patient[headlight_range, col + 1] == c.to_byte()
Example #2
0
def test_car_appears_over_dirt_and_pavement(col):
    bumps = [Bump(row=1, col=1)]
    headlight_range = 4
    c = Car(col=col, speed=1)
    patient = dg_road.LaneAndDitchRoad(headlight_range, c, bumps).board()
    assert patient[headlight_range, col + 1] == c.to_byte()