From 81517373aa2eed68fc9901c7c71f22a18040cd51 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Jan 2017 00:00:26 +0300 Subject: Fix code style. Remove some useless checks. --- src/utils/stringutils_unittest.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/utils/stringutils_unittest.cc') diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc index 309bf1ee9..cc1b2da69 100644 --- a/src/utils/stringutils_unittest.cc +++ b/src/utils/stringutils_unittest.cc @@ -611,7 +611,7 @@ TEST_CASE("stringuntils splitToIntSet 1") { std::set tokens; splitToIntSet(tokens, "", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); splitToIntSet(tokens, "10z,aa,-1", ','); @@ -652,7 +652,7 @@ TEST_CASE("stringuntils splitToIntList 1") { std::list tokens; tokens = splitToIntList("", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); tokens = splitToIntList("10z,a,-1", ','); @@ -707,7 +707,7 @@ TEST_CASE("stringuntils splitToStringSet 1") { std::set tokens; splitToStringSet(tokens, "", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); splitToStringSet(tokens, "10q,2w,30e", ','); @@ -754,7 +754,7 @@ TEST_CASE("stringuntils splitToIntVector 1") { std::vector tokens; splitToIntVector(tokens, "", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); splitToIntVector(tokens, "10,2,30", ','); @@ -801,7 +801,7 @@ TEST_CASE("stringuntils splitToStringVector 1") { std::vector tokens; splitToStringVector(tokens, "", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); splitToStringVector(tokens, "t,line,zz", ','); -- cgit v1.2.3-70-g09d2