this tests even a bit more

This commit is contained in:
Robin Müller 2022-03-10 09:44:06 +01:00
parent 6b1a81ee92
commit 14ac852b7e
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -38,16 +38,18 @@ TEST_CASE("Version API Tests", "[TestVersionAPI]") {
REQUIRE(v1 <= v2); REQUIRE(v1 <= v2);
REQUIRE(v1 >= v2); REQUIRE(v1 >= v2);
v1.major += 1; v1.major += 1;
v1.minor -= 1;
REQUIRE(v1 != v2); REQUIRE(v1 != v2);
REQUIRE(v1 > v2); REQUIRE(v1 > v2);
REQUIRE(v1 >= v2); REQUIRE(v1 >= v2);
v1.major -= 1; v1.major -= 1;
v1.minor += 1; v1.minor += 2;
v1.revision -= 1;
REQUIRE(v1 != v2); REQUIRE(v1 != v2);
REQUIRE(v1 > v2); REQUIRE(v1 > v2);
REQUIRE(v1 >= v2); REQUIRE(v1 >= v2);
v1.minor -= 1; v1.minor -= 1;
v1.revision += 1; v1.revision += 2;
REQUIRE(v1 != v2); REQUIRE(v1 != v2);
REQUIRE(v1 > v2); REQUIRE(v1 > v2);
REQUIRE(v1 >= v2); REQUIRE(v1 >= v2);