using .empty() on stl containers

This commit is contained in:
Erik Frojdh
2020-06-29 17:20:56 +02:00
parent 05ef55b258
commit 19e40cf0e6
6 changed files with 33 additions and 33 deletions

View File

@ -57,7 +57,7 @@ TEST_CASE("Remove char from string") {
TEST_CASE("Remove char from empty string") {
char str[50] = {};
sls::removeChar(str, 'e');
REQUIRE(std::string(str) == "");
REQUIRE(std::string(str).empty());
}
TEST_CASE("Many characters in a row") {