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

Function test_time_warp_from_release_time

tests/test_DurationSegment.py:254–261  ·  view source on GitHub ↗

Tests that time warp due to a late release time of the current trip results in the expected amount of time warp.

(release_time: int, exp_time_warp: int)

Source from the content-addressed store, hash-verified

252 ],
253)
254def test_time_warp_from_release_time(release_time: int, exp_time_warp: int):
255 """
256 Tests that time warp due to a late release time of the current trip results
257 in the expected amount of time warp.
258 """
259 segment = DurationSegment(0, 0, 0, 100, release_time)
260 assert_equal(segment.start_late(), max(100, release_time))
261 assert_equal(segment.time_warp(), exp_time_warp)
262
263
264def test_finalise_front():

Callers

nothing calls this directly

Calls 1

DurationSegmentClass · 0.85

Tested by

no test coverage detected