Use BOOST_CHECK instead of BOOST_ASSERT to make tests work in release mode

This commit is contained in:
Patrick Niklaus
2018-02-01 15:54:12 +00:00
committed by Patrick Niklaus
parent 371dc57dfc
commit eb1e83858a
2 changed files with 24 additions and 24 deletions
+23 -23
View File
@@ -82,9 +82,9 @@ BOOST_AUTO_TEST_CASE(long_road_test)
MakeUnitEdge(4, 3)};
Graph graph(5, edges);
BOOST_ASSERT(compatible(graph, annotations, 0, 2));
BOOST_ASSERT(compatible(graph, annotations, 2, 4));
BOOST_ASSERT(compatible(graph, annotations, 4, 6));
BOOST_CHECK(compatible(graph, annotations, 0, 2));
BOOST_CHECK(compatible(graph, annotations, 2, 4));
BOOST_CHECK(compatible(graph, annotations, 4, 6));
compressor.Compress(barrier_nodes,
traffic_lights,
@@ -132,19 +132,19 @@ BOOST_AUTO_TEST_CASE(loop_test)
MakeUnitEdge(5, 4)};
Graph graph(6, edges);
BOOST_ASSERT(edges.size() == 12);
BOOST_ASSERT(compatible(graph, annotations, 0, 1));
BOOST_ASSERT(compatible(graph, annotations, 1, 2));
BOOST_ASSERT(compatible(graph, annotations, 2, 3));
BOOST_ASSERT(compatible(graph, annotations, 3, 4));
BOOST_ASSERT(compatible(graph, annotations, 4, 5));
BOOST_ASSERT(compatible(graph, annotations, 5, 6));
BOOST_ASSERT(compatible(graph, annotations, 6, 7));
BOOST_ASSERT(compatible(graph, annotations, 7, 8));
BOOST_ASSERT(compatible(graph, annotations, 8, 9));
BOOST_ASSERT(compatible(graph, annotations, 9, 10));
BOOST_ASSERT(compatible(graph, annotations, 10, 11));
BOOST_ASSERT(compatible(graph, annotations, 11, 0));
BOOST_CHECK(edges.size() == 12);
BOOST_CHECK(compatible(graph, annotations, 0, 1));
BOOST_CHECK(compatible(graph, annotations, 1, 2));
BOOST_CHECK(compatible(graph, annotations, 2, 3));
BOOST_CHECK(compatible(graph, annotations, 3, 4));
BOOST_CHECK(compatible(graph, annotations, 4, 5));
BOOST_CHECK(compatible(graph, annotations, 5, 6));
BOOST_CHECK(compatible(graph, annotations, 6, 7));
BOOST_CHECK(compatible(graph, annotations, 7, 8));
BOOST_CHECK(compatible(graph, annotations, 8, 9));
BOOST_CHECK(compatible(graph, annotations, 9, 10));
BOOST_CHECK(compatible(graph, annotations, 10, 11));
BOOST_CHECK(compatible(graph, annotations, 11, 0));
compressor.Compress(barrier_nodes,
traffic_lights,
@@ -189,11 +189,11 @@ BOOST_AUTO_TEST_CASE(t_intersection)
MakeUnitEdge(3, 1)};
Graph graph(4, edges);
BOOST_ASSERT(compatible(graph, annotations, 0, 1));
BOOST_ASSERT(compatible(graph, annotations, 1, 2));
BOOST_ASSERT(compatible(graph, annotations, 2, 3));
BOOST_ASSERT(compatible(graph, annotations, 3, 4));
BOOST_ASSERT(compatible(graph, annotations, 4, 5));
BOOST_CHECK(compatible(graph, annotations, 0, 1));
BOOST_CHECK(compatible(graph, annotations, 1, 2));
BOOST_CHECK(compatible(graph, annotations, 2, 3));
BOOST_CHECK(compatible(graph, annotations, 3, 4));
BOOST_CHECK(compatible(graph, annotations, 4, 5));
compressor.Compress(barrier_nodes,
traffic_lights,
@@ -231,8 +231,8 @@ BOOST_AUTO_TEST_CASE(street_name_changes)
edges[2].data.annotation_data = edges[3].data.annotation_data = 1;
Graph graph(5, edges);
BOOST_ASSERT(compatible(graph, annotations, 0, 1));
BOOST_ASSERT(compatible(graph, annotations, 2, 3));
BOOST_CHECK(compatible(graph, annotations, 0, 1));
BOOST_CHECK(compatible(graph, annotations, 2, 3));
compressor.Compress(barrier_nodes,
traffic_lights,