MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / test_versionCompare

Method test_versionCompare

tests/Version_test.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 setupVersions();
66 }
67 void test_versionCompare()
68 {
69 QFETCH(QString, first);
70 QFETCH(QString, second);
71 QFETCH(bool, lessThan);
72 QFETCH(bool, equal);
73
74 const auto v1 = Version(first);
75 const auto v2 = Version(second);
76
77 QCOMPARE(v1 < v2, lessThan);
78 QCOMPARE(v1 > v2, !lessThan && !equal);
79 QCOMPARE(v1 == v2, equal);
80 }
81};
82
83QTEST_GUILESS_MAIN(ModUtilsTest)

Callers

nothing calls this directly

Calls 1

VersionClass · 0.50

Tested by

no test coverage detected