From 981ffe8fb87bc12aa7769706d2db97a4eb1bbefb Mon Sep 17 00:00:00 2001 From: codepuncher Date: Thu, 18 Jun 2026 12:41:17 +0100 Subject: [PATCH] fix(test): fix ActionName pointer comparison in test assertions --- test/PluginTests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/PluginTests.cpp b/test/PluginTests.cpp index d881681..f5cf2f2 100644 --- a/test/PluginTests.cpp +++ b/test/PluginTests.cpp @@ -116,9 +116,9 @@ TEST_CASE("ActionName maps enum values and falls back to None", "[config]") { using Action = LongPressAction; - CHECK(ActionName(Action::kMap) == "Map"); - CHECK(ActionName(Action::kMCM) == "MCM"); - CHECK(ActionName(Action::kQuickSave) == "QuickSave"); - CHECK(ActionName(Action::kCharacterSheet) == "CharacterSheet"); - CHECK(ActionName(static_cast(9999)) == "None"); + CHECK(std::string_view{ ActionName(Action::kMap) } == "Map"); + CHECK(std::string_view{ ActionName(Action::kMCM) } == "MCM"); + CHECK(std::string_view{ ActionName(Action::kQuickSave) } == "QuickSave"); + CHECK(std::string_view{ ActionName(Action::kCharacterSheet) } == "CharacterSheet"); + CHECK(std::string_view{ ActionName(static_cast(9999)) } == "None"); }