Skip to content
Snippets Groups Projects
Commit c76a4e57 authored by Fabian Reister's avatar Fabian Reister
Browse files

test: json stuff

parent a8c9c8f1
No related branches found
No related tags found
2 merge requests!33Feature/dynamic scene provider component,!28Draft: Dev -> Main
......@@ -158,8 +158,8 @@ BOOST_AUTO_TEST_CASE(testGrid)
const float cellSize = j.at("cell_size"); // [mm]
BOOST_REQUIRE_GT(cellSize, 0);
std::vector<float> sceneBoundsMinV(j["scene_bounds"]["min"]);
std::vector<float> sceneBoundsMaxV(j["scene_bounds"]["max"]);
const std::vector<float> sceneBoundsMinV(j.at("scene_bounds").at("min"));
const std::vector<float> sceneBoundsMaxV(j.at("scene_bounds").at("max"));
BOOST_REQUIRE_EQUAL(sceneBoundsMinV.size(), 2);
BOOST_REQUIRE_EQUAL(sceneBoundsMaxV.size(), 2);
......@@ -212,8 +212,8 @@ BOOST_AUTO_TEST_CASE(testSPFAPlanWObstacleDistance)
const float cellSize = j.at("cell_size"); // [mm]
BOOST_REQUIRE_GT(cellSize, 0);
std::vector<float> sceneBoundsMinV(j["scene_bounds"]["min"]);
std::vector<float> sceneBoundsMaxV(j["scene_bounds"]["max"]);
std::vector<float> sceneBoundsMinV(j.at("scene_bounds"]["min"));
std::vector<float> sceneBoundsMaxV(j.at("scene_bounds"]["max"));
BOOST_REQUIRE_EQUAL(sceneBoundsMinV.size(), 2);
BOOST_REQUIRE_EQUAL(sceneBoundsMaxV.size(), 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment