From 62c52fd580a4d9d1075a3636857a122697d2f6e7 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 2 Aug 2024 11:13:50 +0200 Subject: [PATCH] test case for fuchs, fane alm. --- main/main.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index b557d6d..6539b4d 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -47,11 +47,11 @@ extern "C" char* strptime(const char* s, #define NEUHAUSER_CHRISTOPH_REISEN (0) #define NEUHAUSER_PERNEGG_AN_DER_MUR (0) #define NEUHAUSER_STOCKERAU (0) -#define KLEIPEDA_LITAUEN (1) +#define KLEIPEDA_LITAUEN (0) #define SEXTEN (0) #define SCHNALS_LEITER_KIRCHL (0) #define SCHNALS_STAUMAUER (SCHNALS_LEITER_KIRCHL) -#define VALSER_ALM (0) +#define VALSER_ALM (1) #if NEUHAUSER_KIRCHDORF==1 static bool test_neuhauser_kirchdorf(int step, double cost) { @@ -919,22 +919,24 @@ int main() { s.setTime(QTime(12, 0, 0)); int minimal_parking_price = get_minimal_parkingprice(&cfg, - PermitType(PERMIT_TYPE::SHORT_TERM_PARKING), + PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW), paymentOptionIndex, s); +#if 0 qCritical() << "minimal parking price" << minimal_parking_price; for (int i = 0; i < 8; ++i) { calcState = compute_duration_for_parking_ticket(&cfg, s, (double)minimal_parking_price + i*800, - end, PermitType(PERMIT_TYPE::SHORT_TERM_PARKING)); + end, PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW)); qCritical() << "RUN" << i << end.toString(Qt::ISODate) << calcState.toString(); } +#else s.setTime(QTime(15, 0, 0)); minimal_parking_price = get_minimal_parkingprice(&cfg, - PermitType(PERMIT_TYPE::SHORT_TERM_PARKING), + PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW), paymentOptionIndex, s); qCritical() << "minimal parking price" << minimal_parking_price; @@ -942,9 +944,10 @@ int main() { for (int i = 0; i < 8; ++i) { calcState = compute_duration_for_parking_ticket(&cfg, s, (double)minimal_parking_price + i*800, - end, PermitType(PERMIT_TYPE::SHORT_TERM_PARKING)); + end, PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW)); qCritical() << "RUN" << i << end.toString(Qt::ISODate) << calcState.toString(); } +#endif } } #endif