diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-04-27 17:09:17 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-04-27 17:09:17 +0200 |
commit | 6a20d3181d1ef939bca61e7fe2ce265a974678f4 (patch) | |
tree | b306ed5b8af2761d44911abf76693824c547db1a /tests | |
parent | 93f3b605418b95461e5bf117739099ce9052468f (diff) |
Core/Chat: Support new 11.1.5 chat link color format and more chat link types
Diffstat (limited to 'tests')
-rw-r--r-- | tests/game/Hyperlinks.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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"); |