mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 18:13:38 +08:00
CharArrayFormatter: using %g instead of %f for better readability
This commit is contained in:
@@ -136,7 +136,7 @@ TEST(Logger, Cpp11Formatting)
|
||||
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(10));
|
||||
ASSERT_EQ(log_sub.collector.msg->level.value, uavcan::protocol::debug::LogLevel::WARNING);
|
||||
ASSERT_EQ(log_sub.collector.msg->source, "foo");
|
||||
ASSERT_EQ(log_sub.collector.msg->text, "char='$', double is 12.340000");
|
||||
ASSERT_EQ(log_sub.collector.msg->text, "char='$', double is 12.34");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user