From 6a20d3181d1ef939bca61e7fe2ce265a974678f4 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 27 Apr 2025 17:09:17 +0200 Subject: Core/Chat: Support new 11.1.5 chat link color format and more chat link types --- tests/game/Hyperlinks.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/game/Hyperlinks.cpp b/tests/game/Hyperlinks.cpp index a4f01a37992..9fd8bff0009 100644 --- a/tests/game/Hyperlinks.cpp +++ b/tests/game/Hyperlinks.cpp @@ -31,10 +31,7 @@ TEST_CASE("Basic link structure", "[Hyperlinks]") HyperlinkInfo info = ParseSingleHyperlink("|cabcdef01|HTag|h[text]|h|r"); REQUIRE(info.ok); REQUIRE(info.color == 0xabcdef01); - REQUIRE(info.color.a == 0xab); - REQUIRE(info.color.r == 0xcd); - REQUIRE(info.color.g == 0xef); - REQUIRE(info.color.b == 0x01); + REQUIRE(info.color.data == "abcdef01"sv); REQUIRE(info.tag == "Tag"); REQUIRE(info.data == ""); REQUIRE(info.text == "text"); @@ -45,10 +42,7 @@ TEST_CASE("Basic link structure", "[Hyperlinks]") HyperlinkInfo info = ParseSingleHyperlink("|c12345678|Htag:data1:data2:data3:data4:data5|h[Text]|h|rtail"); REQUIRE(info.ok); REQUIRE(info.color == 0x12345678); - REQUIRE(info.color.a == 0x12); - REQUIRE(info.color.r == 0x34); - REQUIRE(info.color.g == 0x56); - REQUIRE(info.color.b == 0x78); + REQUIRE(info.color.data == "12345678"sv); REQUIRE(info.tag == "tag"); REQUIRE(info.data == "data1:data2:data3:data4:data5"); REQUIRE(info.text == "Text"); -- cgit v1.2.3