Lion Kortlepel 2022-05-26 15:41:18 +02:00
parent 1c3b1ecc76
commit 3d7db6d0bc
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -102,7 +102,7 @@ TEST_CASE("Application::IsOutdated (version check)") {
for (uint8_t Patch = 0; Patch < 10; ++Patch) { for (uint8_t Patch = 0; Patch < 10; ++Patch) {
for (uint8_t Minor = 0; Minor < 10; ++Minor) { for (uint8_t Minor = 0; Minor < 10; ++Minor) {
for (uint8_t Major = 0; Major < 10; ++Major) { for (uint8_t Major = 0; Major < 10; ++Major) {
CHECK(Application::IsOutdated({ Major, Minor, Patch }, { Major, Minor, Patch + 1 })); CHECK(Application::IsOutdated({ uint8_t(Major), uint8_t(Minor), uint8_t(Patch) }, { uint8_t(Major), uint8_t(Minor), uint8_t(Patch + 1) }));
} }
} }
} }
@ -111,7 +111,7 @@ TEST_CASE("Application::IsOutdated (version check)") {
for (uint8_t Patch = 0; Patch < 10; ++Patch) { for (uint8_t Patch = 0; Patch < 10; ++Patch) {
for (uint8_t Minor = 0; Minor < 10; ++Minor) { for (uint8_t Minor = 0; Minor < 10; ++Minor) {
for (uint8_t Major = 0; Major < 10; ++Major) { for (uint8_t Major = 0; Major < 10; ++Major) {
CHECK(Application::IsOutdated({ Major, Minor, Patch }, { Major, Minor + 1, Patch })); CHECK(Application::IsOutdated({ uint8_t(Major), uint8_t(Minor), uint8_t(Patch) }, { uint8_t(Major), uint8_t(Minor + 1), uint8_t(Patch) }));
} }
} }
} }
@ -120,7 +120,7 @@ TEST_CASE("Application::IsOutdated (version check)") {
for (uint8_t Patch = 0; Patch < 10; ++Patch) { for (uint8_t Patch = 0; Patch < 10; ++Patch) {
for (uint8_t Minor = 0; Minor < 10; ++Minor) { for (uint8_t Minor = 0; Minor < 10; ++Minor) {
for (uint8_t Major = 0; Major < 10; ++Major) { for (uint8_t Major = 0; Major < 10; ++Major) {
CHECK(Application::IsOutdated({ Major, Minor, Patch }, { Major + 1, Minor, Patch })); CHECK(Application::IsOutdated({ uint8_t(Major), uint8_t(Minor), uint8_t(Patch) }, { uint8_t(Major + 1), uint8_t(Minor), uint8_t(Patch) }));
} }
} }
} }
@ -129,7 +129,7 @@ TEST_CASE("Application::IsOutdated (version check)") {
for (uint8_t Patch = 0; Patch < 10; ++Patch) { for (uint8_t Patch = 0; Patch < 10; ++Patch) {
for (uint8_t Minor = 0; Minor < 10; ++Minor) { for (uint8_t Minor = 0; Minor < 10; ++Minor) {
for (uint8_t Major = 0; Major < 10; ++Major) { for (uint8_t Major = 0; Major < 10; ++Major) {
CHECK(Application::IsOutdated({ Major, Minor, Patch }, { Major + 1, Minor + 1, Patch + 1 })); CHECK(Application::IsOutdated({ uint8_t(Major), uint8_t(Minor), uint8_t(Patch) }, { uint8_t(Major + 1), uint8_t(Minor + 1), uint8_t(Patch + 1) }));
} }
} }
} }