MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / test_load

Function test_load

tests/test_Trip.py:143–151  ·  view source on GitHub ↗

Tests load calculations for a small instance.

(ok_small)

Source from the content-addressed store, hash-verified

141
142
143def test_load(ok_small):
144 """
145 Tests load calculations for a small instance.
146 """
147 trip = Trip(ok_small, [1, 2, 3, 4], 0)
148 assert_equal(trip.delivery(), [18])
149 assert_equal(trip.pickup(), [0])
150 assert_equal(trip.load(), [18])
151 assert_equal(trip.excess_load(), [8])

Callers

nothing calls this directly

Calls 4

TripClass · 0.90
deliveryMethod · 0.80
pickupMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected