summaryrefslogtreecommitdiff
path: root/src/utils/stringutils_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-27 22:27:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-27 22:27:39 +0300
commit4102bb248ed5f5efcd81d317a876318c91bad4d6 (patch)
tree738800bc14ade7397ff98f036e3bf5500715e63e /src/utils/stringutils_unittest.cc
parentbeb426326518da97747cb5dce6773a13a96ceb2a (diff)
downloadplus-4102bb248ed5f5efcd81d317a876318c91bad4d6.tar.gz
plus-4102bb248ed5f5efcd81d317a876318c91bad4d6.tar.bz2
plus-4102bb248ed5f5efcd81d317a876318c91bad4d6.tar.xz
plus-4102bb248ed5f5efcd81d317a876318c91bad4d6.zip
fix code style and issues with different builds.
Diffstat (limited to 'src/utils/stringutils_unittest.cc')
-rw-r--r--src/utils/stringutils_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 06ddaefd4..a3ae69d48 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -133,23 +133,23 @@ TEST(stringuntils, compareStrI1)
{
std::string str1 = "";
std::string str2 = "";
- EXPECT_TRUE(compareStrI(str1, str2) == 0);
+ EXPECT_EQ(0, compareStrI(str1, str2));
str1 = "test";
str2 = "test";
- EXPECT_TRUE(compareStrI(str1, str2) == 0);
+ EXPECT_EQ(0, compareStrI(str1, str2));
str1 = "test";
str2 = "test1";
- EXPECT_TRUE(compareStrI(str1, str2) < 0);
+ EXPECT_GT(0, compareStrI(str1, str2));
str1 = "test";
str2 = "aest1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
- EXPECT_TRUE(compareStrI(str1, str2) > 0);
+ EXPECT_LT(0, compareStrI(str1, str2));
str1 = "testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
str2 = "testaa";
- EXPECT_TRUE(compareStrI(str1, str2) > 0);
+ EXPECT_LT(0, compareStrI(str1, str2));
}
TEST(stringuntils, isWordSeparator1)