MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / test_str

Function test_str

tests/test_LoadSegment.py:96–105  ·  view source on GitHub ↗

Tests that the load segment's string representation contains useful debugging information.

()

Source from the content-addressed store, hash-verified

94
95
96def test_str():
97 """
98 Tests that the load segment's string representation contains useful
99 debugging information.
100 """
101 segment = LoadSegment(delivery=2, pickup=3, load=5, excess_load=7)
102 assert_("delivery=2" in str(segment))
103 assert_("pickup=3" in str(segment))
104 assert_("load=5" in str(segment))
105 assert_("excess_load=7" in str(segment))

Callers

nothing calls this directly

Calls 1

LoadSegmentClass · 0.85

Tested by

no test coverage detected