summaryrefslogtreecommitdiff
path: root/src/utils/stringutils_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils_unittest.cc')
-rw-r--r--src/utils/stringutils_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 8f28f5c10..06ddaefd4 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -144,7 +144,11 @@ TEST(stringuntils, compareStrI1)
EXPECT_TRUE(compareStrI(str1, str2) < 0);
str1 = "test";
- str2 = "aest1";
+ str2 = "aest1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
+ EXPECT_TRUE(compareStrI(str1, str2) > 0);
+
+ str1 = "testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
+ str2 = "testaa";
EXPECT_TRUE(compareStrI(str1, str2) > 0);
}