Skip to content

Commit 6a2aa33

Browse files
authored
Add test for VersionMessage (UniversalRobots#427)
Add a primary parser test for a VersionMessage data blob.
1 parent a9c02cb commit 6a2aa33

2 files changed

Lines changed: 143 additions & 93 deletions

File tree

src/primary/robot_message/version_message.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ bool VersionMessage ::consumeWith(AbstractPrimaryConsumer& consumer)
5757
std::string VersionMessage::toString() const
5858
{
5959
std::stringstream ss;
60+
ss << "VersionMessage:" << std::endl;
6061
ss << "project name: " << project_name_ << std::endl;
6162
ss << "version: " << unsigned(major_version_) << "." << unsigned(minor_version_) << "." << svn_version_ << std::endl;
62-
ss << "build date: " << build_date_;
63+
ss << "build date: " << build_date_ << std::endl;
64+
ss << "build number: " << build_number_ << std::endl;
6365

6466
return ss.str();
6567
}

0 commit comments

Comments
 (0)