summaryrefslogtreecommitdiff
path: root/src/utils/parameters_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 01:22:43 +0300
commit34a83475636164cf43551d9ec83ec30da5a7e7f2 (patch)
treec6b3e22f789422e06a96c2ca87dd94fc61eb1dd1 /src/utils/parameters_unittest.cc
parentaf4fcff19a986990d58c50c62bc498690c8293b8 (diff)
downloadplus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.gz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.bz2
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.tar.xz
plus-34a83475636164cf43551d9ec83ec30da5a7e7f2.zip
Replace size() to empty() where is possible
Diffstat (limited to 'src/utils/parameters_unittest.cc')
-rw-r--r--src/utils/parameters_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/parameters_unittest.cc b/src/utils/parameters_unittest.cc
index 192249a12..7739b62bd 100644
--- a/src/utils/parameters_unittest.cc
+++ b/src/utils/parameters_unittest.cc
@@ -28,7 +28,7 @@ TEST_CASE("parameters basic 1", "")
{
StringVect pars;
REQUIRE(splitParameters(pars, "", ",", '\"') == true);
- REQUIRE(pars.size() == 0);
+ REQUIRE(pars.empty());
}
TEST_CASE("parameters basic 2", "")
@@ -45,7 +45,7 @@ TEST_CASE("parameters basic 3", "")
{
StringVect pars;
REQUIRE(splitParameters(pars, ", ,,,", ",", '\"') == true);
- REQUIRE(pars.size() == 0);
+ REQUIRE(pars.empty());
}
TEST_CASE("parameters basic 4", "")
@@ -99,7 +99,7 @@ TEST_CASE("parameters quote 2", "")
StringVect pars;
REQUIRE(splitParameters(pars, "\"\",,two, tree", ",", '\"') == true);
REQUIRE(pars.size() == 3);
- REQUIRE(pars[0] == "");
+ REQUIRE(pars[0].empty());
REQUIRE(pars[1] == "two");
REQUIRE(pars[2] == "tree");
}
@@ -315,7 +315,7 @@ TEST_CASE("parameters broken 2", "")
{
StringVect pars;
REQUIRE(splitParameters(pars, ",", ",", '\"') == true);
- REQUIRE(pars.size() == 0);
+ REQUIRE(pars.empty());
}
TEST_CASE("parameters broken 3", "")
@@ -323,5 +323,5 @@ TEST_CASE("parameters broken 3", "")
StringVect pars;
REQUIRE(splitParameters(pars,
",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,", ",", '\"') == true);
- REQUIRE(pars.size() == 0);
+ REQUIRE(pars.empty());
}