Tests: Use .empty() to test for empty string instead of == ""

This commit is contained in:
Carbenium
2020-09-06 22:03:09 +02:00
parent c68faf108e
commit 697fb48747

View File

@@ -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")
{