mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 08:43:34 +08:00
OStream helper class
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <uavcan/helpers/ostream.hpp>
|
||||
|
||||
#include <uavcan/Timestamp.hpp>
|
||||
#include <uavcan/FigureOfMerit.hpp>
|
||||
#include <uavcan/mavlink/Message.hpp>
|
||||
@@ -112,3 +114,11 @@ TEST(Dsdl, Streaming)
|
||||
std::cout << os.str();
|
||||
ASSERT_EQ(Reference, os.str());
|
||||
}
|
||||
|
||||
|
||||
TEST(Dsdl, OStream)
|
||||
{
|
||||
root_ns_a::Deep ps;
|
||||
ps.a.resize(2);
|
||||
uavcan::OStream::instance() << ps << uavcan::OStream::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user