@@ -58,22 +58,22 @@ BOOST_AUTO_TEST_CASE(nav_waypoints) {
5858 client_to_mock_pipeline<Navigation>(mock, [&](Navigation& client) {
5959 // confirm empty
6060 auto waypoints = client.get_waypoints ();
61- BOOST_CHECK_EQUAL (waypoints-> size (), 0 );
61+ BOOST_CHECK_EQUAL (waypoints. size (), 0 );
6262
6363 // add 3 and confirm size
6464 for (int i = 0 ; i < 3 ; i++) {
6565 client.add_waypoint (geo_point{0 , double (i)});
6666 }
6767 waypoints = client.get_waypoints ();
68- BOOST_CHECK_EQUAL (waypoints-> size (), 3 );
68+ BOOST_CHECK_EQUAL (waypoints. size (), 3 );
6969
7070 // remove 1, check size and IDs
71- client.remove_waypoint ((* waypoints) [1 ].id );
72- const std::vector<std::string> expected_ids = {(* waypoints) [0 ].id , (* waypoints) [2 ].id };
71+ client.remove_waypoint (waypoints[1 ].id );
72+ const std::vector<std::string> expected_ids = {waypoints[0 ].id , waypoints[2 ].id };
7373 waypoints = client.get_waypoints ();
74- BOOST_CHECK_EQUAL (waypoints-> size (), 2 );
74+ BOOST_CHECK_EQUAL (waypoints. size (), 2 );
7575 const auto actual_ids =
76- mapOver (* waypoints, [](const Navigation::Waypoint& wp) { return wp.id ; });
76+ mapOver (waypoints, [](const Navigation::Waypoint& wp) { return wp.id ; });
7777 BOOST_CHECK_EQUAL (expected_ids, actual_ids);
7878 });
7979}
@@ -83,18 +83,18 @@ BOOST_AUTO_TEST_CASE(nav_obstacles) {
8383 client_to_mock_pipeline<Navigation>(mock, [&](Navigation& client) {
8484 // empty case
8585 auto obstacles = client.get_obstacles ();
86- BOOST_CHECK_EQUAL (obstacles-> size (), 0 );
86+ BOOST_CHECK_EQUAL (obstacles. size (), 0 );
8787
8888 // one element
8989 mock->obstacles .push_back ({});
9090 obstacles = client.get_obstacles ();
91- BOOST_CHECK_EQUAL (obstacles-> size (), 1 );
91+ BOOST_CHECK_EQUAL (obstacles. size (), 1 );
9292
9393 // one element with one sub-element
9494 mock->obstacles .back ().geometries .push_back ({});
9595 obstacles = client.get_obstacles ();
96- BOOST_CHECK_EQUAL (obstacles-> size (), 1 );
97- BOOST_CHECK_EQUAL (obstacles-> back ().geometries .size (), 1 );
96+ BOOST_CHECK_EQUAL (obstacles. size (), 1 );
97+ BOOST_CHECK_EQUAL (obstacles. back ().geometries .size (), 1 );
9898 });
9999}
100100
@@ -103,13 +103,13 @@ BOOST_AUTO_TEST_CASE(nav_paths) {
103103 client_to_mock_pipeline<Navigation>(mock, [&](Navigation& client) {
104104 // empty
105105 auto paths = client.get_paths ();
106- BOOST_CHECK_EQUAL (paths-> size (), 0 );
106+ BOOST_CHECK_EQUAL (paths. size (), 0 );
107107
108108 // 1 element with 1 sub-element
109109 mock->paths .push_back ({" 2" , {{}}});
110110 paths = client.get_paths ();
111111 std::vector<Navigation::Path> expected = {Navigation::Path{" 2" , {{}}}};
112- BOOST_CHECK_EQUAL (* paths, expected);
112+ BOOST_CHECK_EQUAL (paths, expected);
113113 });
114114}
115115
0 commit comments