CharArrayFormatter: using %g instead of %f for better readability

This commit is contained in:
Pavel Kirienko
2014-08-16 13:43:24 +04:00
parent e2e358bb06
commit d816d58b30
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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