summaryrefslogtreecommitdiffstats
path: root/tests/CompositeChat/CompositeChatTest.cpp
diff options
context:
space:
mode:
authorDebucquoy Anthony tonitch <d.tonitch@gmail.com>2022-10-25 13:42:04 +0200
committerGitHub <noreply@github.com>2022-10-25 13:42:04 +0200
commit16f3355bbbd2170dd8f836885f5c887ff65c5f7d (patch)
treecee85a561104d295f288b5fed2b53e68d9a8c882 /tests/CompositeChat/CompositeChatTest.cpp
parentUpdate Core (diff)
downloadcuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.gz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.bz2
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.lz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.xz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.zst
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.zip
Diffstat (limited to '')
-rw-r--r--tests/CompositeChat/CompositeChatTest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/CompositeChat/CompositeChatTest.cpp b/tests/CompositeChat/CompositeChatTest.cpp
index 636a5c95a..ca05e79a2 100644
--- a/tests/CompositeChat/CompositeChatTest.cpp
+++ b/tests/CompositeChat/CompositeChatTest.cpp
@@ -14,7 +14,7 @@
static void TestParser1(void)
{
cCompositeChat Msg;
- Msg.ParseText("Testing @2color codes and http://links parser");
+ Msg.ParseText("Testing &2color codes and http://links parser");
const auto & Parts = Msg.GetParts();
TEST_EQUAL(Parts.size(), 4);
@@ -22,13 +22,13 @@ static void TestParser1(void)
TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[0]).Style, "");
TEST_TRUE(std::holds_alternative<cCompositeChat::TextPart>(Parts[1]));
- TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[1]).Style, "@2");
+ TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[1]).Style, "2");
TEST_TRUE(std::holds_alternative<cCompositeChat::UrlPart>(Parts[2]));
- TEST_EQUAL(std::get<cCompositeChat::UrlPart>(Parts[2]).Style, "@2");
+ TEST_EQUAL(std::get<cCompositeChat::UrlPart>(Parts[2]).Style, "2");
TEST_TRUE(std::holds_alternative<cCompositeChat::TextPart>(Parts[3]));
- TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[3]).Style, "@2");
+ TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[3]).Style, "2");
}
@@ -38,21 +38,21 @@ static void TestParser1(void)
static void TestParser2(void)
{
cCompositeChat Msg;
- Msg.ParseText("@3Advanced stuff: @5overriding color codes and http://links.with/@4color-in-them handling");
+ Msg.ParseText("&3Advanced stuff: &5overriding color codes and http://links.with/&4color-in-them handling");
const auto & Parts = Msg.GetParts();
TEST_EQUAL(Parts.size(), 4);
TEST_TRUE(std::holds_alternative<cCompositeChat::TextPart>(Parts[0]));
- TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[0]).Style, "@3");
+ TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[0]).Style, "3");
TEST_TRUE(std::holds_alternative<cCompositeChat::TextPart>(Parts[1]));
- TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[1]).Style, "@5");
+ TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[1]).Style, "35");
TEST_TRUE(std::holds_alternative<cCompositeChat::UrlPart>(Parts[2]));
- TEST_EQUAL(std::get<cCompositeChat::UrlPart>(Parts[2]).Style, "@5");
+ TEST_EQUAL(std::get<cCompositeChat::UrlPart>(Parts[2]).Style, "35");
TEST_TRUE(std::holds_alternative<cCompositeChat::TextPart>(Parts[3]));
- TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[3]).Style, "@5");
+ TEST_EQUAL(std::get<cCompositeChat::TextPart>(Parts[3]).Style, "35");
}