From 697fb48747ae2fd26a99ae061d3e2fcd8e75502b Mon Sep 17 00:00:00 2001 From: Carbenium Date: Sun, 6 Sep 2020 22:03:09 +0200 Subject: [PATCH] Tests: Use .empty() to test for empty string instead of == "" --- tests/game/Hyperlinks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/game/Hyperlinks.cpp b/tests/game/Hyperlinks.cpp index 47031adbaba..f95d5834713 100644 --- a/tests/game/Hyperlinks.cpp +++ b/tests/game/Hyperlinks.cpp @@ -36,9 +36,9 @@ TEST_CASE("Basic link structure", "[Hyperlinks]") REQUIRE(info.color.g == 0xef); REQUIRE(info.color.b == 0x01); REQUIRE(info.tag == "Tag"); - REQUIRE(info.data == ""); + REQUIRE(info.data.empty()); REQUIRE(info.text == "text"); - REQUIRE(info.tail == ""); + REQUIRE(info.tail.empty()); } SECTION("Link with data") {