summaryrefslogtreecommitdiffstats
path: root/tests/CompositeChat
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-11-11 22:38:51 +0100
committerGitHub <noreply@github.com>2020-11-11 22:38:51 +0100
commit14a00d0051d9c0f97105145bd2ecf7679bb015a3 (patch)
treeaf90be9dec87986e11779f16ee546de8538e3a1c /tests/CompositeChat
parentAdd correct implementation of crops (#4802) (diff)
downloadcuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar.gz
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar.bz2
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar.lz
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar.xz
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.tar.zst
cuberite-14a00d0051d9c0f97105145bd2ecf7679bb015a3.zip
Diffstat (limited to '')
-rw-r--r--tests/CompositeChat/CompositeChatTest.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/CompositeChat/CompositeChatTest.cpp b/tests/CompositeChat/CompositeChatTest.cpp
index a6ac86921..08733d661 100644
--- a/tests/CompositeChat/CompositeChatTest.cpp
+++ b/tests/CompositeChat/CompositeChatTest.cpp
@@ -96,6 +96,19 @@ static void TestParser5(void)
+static void TestParser6(void)
+{
+ cCompositeChat Msg;
+ Msg.ParseText("Hello World");
+ const cCompositeChat::cParts & Parts = Msg.GetParts();
+ TEST_EQUAL(Parts.size(), 1);
+ TEST_EQUAL(Parts[0]->m_PartType, cCompositeChat::ptText);
+ TEST_EQUAL(Parts[0]->m_Style, "");
+}
+
+
+
+
IMPLEMENT_TEST_MAIN("CompositeChat",
TestParser1();
@@ -103,4 +116,5 @@ IMPLEMENT_TEST_MAIN("CompositeChat",
TestParser3();
TestParser4();
TestParser5();
+ TestParser6();
)