tests for neuhauser/kirchdorf

This commit is contained in:
Gerhard Hoffmann 2024-02-21 11:08:49 +01:00
parent e0223b50f9
commit b6a0f5e8af

View File

@ -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);