diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-28 00:00:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-28 00:00:26 +0300 |
commit | 81517373aa2eed68fc9901c7c71f22a18040cd51 (patch) | |
tree | 44228d7cf59a07cc209c607b1492c3dd305e9d43 /src/utils | |
parent | ec0216cdd13aa89aba5da22bad3ef723fa27f6fb (diff) | |
download | manaplus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.gz manaplus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.bz2 manaplus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.xz manaplus-81517373aa2eed68fc9901c7c71f22a18040cd51.zip |
Fix code style. Remove some useless checks.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<int> 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<int> 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<std::string> 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<int> 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<std::string> tokens; splitToStringVector(tokens, "", ','); - REQUIRE(tokens.size() == 0); + REQUIRE(tokens.empty() == true); tokens.clear(); splitToStringVector(tokens, "t,line,zz", ','); |