Skip to content

Commit

Permalink
add test case for the OSM which triggered this bug
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Jan 16, 2025
1 parent c45bce7 commit 4849d5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,27 @@ public void testBuildGraphDetailed() {
}
}

/**
* There is a one-way road which is also marked as a platform in Sky Campus which crashed OSM
*/
@Test
void testCrappyOsmPlatform() {
var deduplicator = new Deduplicator();
var graph = new Graph(deduplicator);
var osmInfoRepository = new DefaultOsmInfoGraphBuildRepository();
var osmModule = OsmModule
.of(
new OsmProvider(RESOURCE_LOADER.file("sky_campus.osm.pbf"), false),
graph,
osmInfoRepository,
new DefaultVehicleParkingRepository()
)
.withBoardingAreaRefTags(Set.of("naptan:AtcoCode"))
.build();
osmModule.buildGraph();
assertTrue(true);
}

@Test
public void testBuildAreaWithoutVisibility() {
testBuildingAreas(true);
Expand Down
Binary file not shown.

0 comments on commit 4849d5b

Please sign in to comment.