Kaydet (Commit) bbb675d4 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Some more compareVersionStrings() tests

Change-Id: I5b9dc45352afd63dae4c3952d9647e6e3ec98ef4
üst 82d08580
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment