summaryrefslogtreecommitdiffhomepage
path: root/tests/test-whiteboard.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-22 12:02:16 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-22 12:02:16 +0100
commit004db5e7e4e9ab6ac5b4730873c6b8f58da92930 (patch)
tree9b76e938558e24ad3a6778b2d725874a3dbe878b /tests/test-whiteboard.cpp
parent6889067f0e4104eaced27bd2e1c303e70e23ca85 (diff)
Storage bugfix, whiteboard xml implementation
Diffstat (limited to 'tests/test-whiteboard.cpp')
-rw-r--r--tests/test-whiteboard.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-whiteboard.cpp b/tests/test-whiteboard.cpp
index 4ed10ae..a472d64 100644
--- a/tests/test-whiteboard.cpp
+++ b/tests/test-whiteboard.cpp
@@ -234,11 +234,15 @@ TEST_F(WhiteboardTest, generate_id)
wc.write("<request><command>newid</command></request>");
std::string result0 {wc.read()};
- ASSERT_EQ(result0.size(), 6);
+ ASSERT_TRUE(boost::algorithm::starts_with(result0, "<serverinfo><type>newid</type><id>"));
+ ASSERT_TRUE(boost::algorithm::ends_with(result0, "</id></serverinfo>"));
+ ASSERT_EQ(result0.size(), 58);
wc.write("<request><command>newid</command></request>");
std::string result1 {wc.read()};
- ASSERT_EQ(result1.size(), 6);
+ ASSERT_TRUE(boost::algorithm::starts_with(result1, "<serverinfo><type>newid</type><id>"));
+ ASSERT_TRUE(boost::algorithm::ends_with(result1, "</id></serverinfo>"));
+ ASSERT_EQ(result1.size(), 58);
ASSERT_NE(result0, result1);
}