ADD: added tests

This commit is contained in:
Henry Winkel
2024-03-11 13:12:56 +01:00
parent ae7a65dff9
commit 453d3c27c4
2 changed files with 12 additions and 3 deletions

View File

@@ -215,7 +215,10 @@ SCENARIO("Testing the SimCore SensorManager with local sensors")
std::string tracklist1 = SensorManager_->getTracklistStringBySensor();
std::string tracklist2 = SensorManager_->getTracklistStringFusioned();
LOG_S(INFO)<<tracklist2;
LOG_S(INFO)<<tracklist1;
THEN("check if Track attributes are correct")
{
@@ -234,6 +237,11 @@ SCENARIO("Testing the SimCore SensorManager with local sensors")
REQUIRE( j2.size() == 8);
REQUIRE(SensorManager_->getSensorCount() == 4);
REQUIRE(SensorManager_->getTrackListUpdateRaw()->getSensors().size() == 4);
REQUIRE(SensorManager_->getTrackListUpdateRaw()->getSensors().at(0).getTracksCount() == 3);
std::this_thread::sleep_for(std::chrono::milliseconds(1000));