aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-09-06 22:03:09 +0200
committerCarbenium <carbenium@outlook.com>2020-09-06 22:03:09 +0200
commit697fb48747ae2fd26a99ae061d3e2fcd8e75502b (patch)
tree83bc55ac4684a6eba4f7a26e356d0ce0a7248205 /tests
parentc68faf108edf50ae8a2ff4a341eff1e0d4269cbc (diff)
Tests: Use .empty() to test for empty string instead of == ""
Diffstat (limited to 'tests')
-rw-r--r--tests/game/Hyperlinks.cpp4
1 files 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")
{