From b6a0f5e8afff82329d5c12e2a787a5ace3739594 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 21 Feb 2024 11:08:49 +0100 Subject: [PATCH] tests for neuhauser/kirchdorf --- main/main.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 5630cd1..5007382 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -115,12 +115,12 @@ int main() { bool prePaid = true; // bool carryOver = false; - QDateTime s(QDate(2023, 11, 30), QTime()); - // QDateTime s(QDate(2023, 11, 26), QTime()); + QDateTime s(QDate(2024, 2, 21), QTime()); QDateTime end; for (int duration = 30; duration <= 90; duration += 5) { // for (int duration = 30; duration <= maxParkingTime; duration += 5) { qCritical() << ""; + //for (int offset = 420; offset <= 1080; ++offset) { for (int offset = 420; offset <= 1080; ++offset) { //for (int offset = 420; offset <= 1080; ++offset) { //if (offset > 720 && offset < 840) { @@ -140,7 +140,6 @@ int main() { duration_ist = duration_ist - 120; } - qCritical() << "****" << offset << duration << "****"; qCritical() << " firstStart :" << firstStart.toString(Qt::ISODate); qCritical() << " start :" << start.toString(Qt::ISODate); @@ -150,16 +149,16 @@ int main() { qCritical() << " cost (soll):" << cost_soll; qCritical() << " cost (ist) :" << cost; - if (cost_soll != cost) { + // if (cost_soll != cost) { //qCritical() << "ERROR" << __func__ << ":" << __LINE__ // << "cost_soll" << cost_soll << "cost_ist" << cost; //break; - } - if (duration != duration_ist) { + // } + // if (duration != duration_ist) { //qCritical() << "ERROR" << __func__ << ":" << __LINE__ // << "duration_soll" << duration << "duration_ist" << duration_ist; //break; - } + // } //#else start = s.addSecs(offset * 60);