Add Prtinfo message type allows messages go into print file.

This commit is contained in:
Liu Ming
2016-06-07 14:09:35 +02:00
parent bbe67c01aa
commit dea35c4c34
3 changed files with 22 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ BOOST_AUTO_TEST_CASE(TestIterator) {
msgList.error("Error");
msgList.problem("Problem");
msgList.bug("Bug");
std::vector<std::string> msgString = {"Debug", "Info", "Warning", "Error", "Problem", "Bug"};
msgList.info("Prtinfo");
std::vector<std::string> msgString = {"Debug", "Info", "Warning", "Error", "Problem", "Bug", "Prtinfo"};
int i = 0;
for (const auto& msg : msgList) {
BOOST_CHECK_EQUAL(msg.message, msgString[i]);