Skip to content
Snippets Groups Projects
Commit a4dc2bc7 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add test for Capture::print()

parent f8aa9e0d
No related branches found
No related tags found
1 merge request!348WIP: Resolve "Rework Problem::{check,print} into a recursive approach"
Pipeline #5221 failed
......@@ -82,6 +82,15 @@ TEST(CaptureBase, addFeature)
ASSERT_EQ(C->getFeatureList().front(), f);
}
TEST(CaptureBase, print)
{
CaptureBasePtr C(std::make_shared<CaptureBase>("DUMMY", 1.2)); // timestamp = 1.2
// FeatureBasePtr f = C->addFeature(std::make_shared<FeatureBase>("DUMMY", Vector2d::Zero(), Matrix2d::Identity()));
auto f = FeatureBase::emplace<FeatureBase>(C, "DUMMY", Vector2d::Zero(), Matrix2d::Identity());
C->print(4, std::cout, 1, 1, 1);
}
TEST(CaptureBase, process)
{
SensorBasePtr S(std::make_shared<SensorBase>("DUMMY", nullptr, nullptr, nullptr, 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