summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-14 12:45:47 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-14 18:27:38 +0200
commitbbb675d4f522321a9a65eaa710785b3551582fd9 (patch)
tree27d21b7a849bf0975bf8a47f2cdbc12a52088ca2 /comphelper
parent82d08580e368afbc9d73da3613845a36a89b0a8c (diff)
Some more compareVersionStrings() tests
Change-Id: I5b9dc45352afd63dae4c3952d9647e6e3ec98ef4
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/qa/string/test_string.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index 6100a777f63a..d1831cee734a 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -443,6 +443,10 @@ void TestString::testCompareVersionStrings()
TEST("1.001", "1.1", -1);
TEST("1.001", "1.010", -1);
TEST("1.2.a", "1.2.b", -1);
+ TEST("1.2.3 (foo,bar)", "1.2.9", -1);
+ TEST("1.2.3 (foo,bar)", "1.2.4 (foo,bar)", -1);
+ TEST("1.2.3 (foo,bar)", "1.2.3 (foo)", 1); // Neither ordering makes any more sense than the other here, as long as they compare unequal
+ TEST("1.2.3 (foo,bar)", "1.2.2 (foo,bar)", 1);
#undef TEST
}