Skip to content

Commit

Permalink
Add tests for max_distance and max_travel_time
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMilardo committed May 23, 2024
1 parent ee59f99 commit 6b1012b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def test_repr():
== "vroom.Vehicle(3, end=7, speed_factor=2.0)")
assert (repr(vroom.Vehicle(3, start=7, max_tasks=17))
== "vroom.Vehicle(3, start=7, max_tasks=17)")
assert (repr(vroom.Vehicle(3, start=7, max_distance=17))
== "vroom.Vehicle(3, start=7, max_distance=17)")
assert (repr(vroom.Vehicle(3, start=7, max_travel_time=17))
== "vroom.Vehicle(3, start=7, max_travel_time=17)")
assert (repr(vroom.Vehicle(3, end=7, steps=[vroom.VehicleStep("single", 3)]))
== """vroom.Vehicle(3, end=7, \
steps=[vroom.VehicleStepStart(), vroom.VehicleStepSingle(3), vroom.VehicleStepEnd()])""")

0 comments on commit 6b1012b

Please sign in to comment.