Skip to content

Commit

Permalink
multimodal test fixed itself
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi committed Jul 20, 2022
1 parent 3360315 commit b5f2c04
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@ public void testDepartureTimeOfAccessLeg() {
assertThat(distances.stream().mapToDouble(d -> (double) d.getValue()).sum())
.isEqualTo(EXPECTED_TOTAL_WALKING_DISTANCE); // Also total walking distance -- PathDetails only cover access/egress for now
assertThat(distances.get(0).getFirst()).isEqualTo(0); // PathDetails start and end with PointList
// TODO GTFS: commenting in this line makes this test fail.
// I don't know what the issue here is, it could be to do with non-deterministic edge-numbering and the like.
// This will, however, need some understanding of the pt-response, which is needed for the API anyways.
// Once this is there (and the API exists), this should be easier to fix.
// assertThat(distances.get(distances.size()-1).getLast()).isEqualTo(10);
assertThat(distances.get(distances.size()-1).getLast()).isEqualTo(10);

List<PathDetail> accessDistances = ((Trip.WalkLeg) firstTransitSolution.getLegs().get(0)).details.get("distance");
assertThat(accessDistances.get(0).getFirst()).isEqualTo(0);
Expand Down

0 comments on commit b5f2c04

Please sign in to comment.