Minor: small changes for tests of PERNEGG-AN-DER-MUR

This commit is contained in:
Gerhard Hoffmann 2024-04-24 09:33:57 +02:00
parent 436f5a109b
commit 3b813e5eff

View File

@ -42,8 +42,8 @@ extern "C" char* strptime(const char* s,
#define NEUHAUSER_BILEXA_GALTUER (0) #define NEUHAUSER_BILEXA_GALTUER (0)
#define NEUHAUSER_KIRCHDORF (0) #define NEUHAUSER_KIRCHDORF (0)
#define BAD_NEUENAHR_AHRWEILER (0) #define BAD_NEUENAHR_AHRWEILER (0)
#define NEUHAUSER_CHRISTOPH_REISEN (1) #define NEUHAUSER_CHRISTOPH_REISEN (0)
#define NEUHAUSER_PERNEGG_AN_DER_MUR (0) #define NEUHAUSER_PERNEGG_AN_DER_MUR (1)
int main() { int main() {
#if NEUHAUSER_PERNEGG_AN_DER_MUR==1 #if NEUHAUSER_PERNEGG_AN_DER_MUR==1
@ -84,12 +84,15 @@ int main() {
QDateTime start = QDateTime::currentDateTime(); QDateTime start = QDateTime::currentDateTime();
start.setTime(QTime(0, 0, 0)); start.setTime(QTime(0, 0, 0));
price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start); price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start);
qCritical() << QString("price (%1) :").arg(start.time().toString(Qt::ISODate)) << price; qCritical() << QString("line=%1 price (%2) :")
.arg(__LINE__)
.arg(start.time().toString(Qt::ISODate)) << price;
start.setTime(QTime(6, 0, 0)); start.setTime(QTime(6, 0, 0));
productStart = productEnd = QDateTime(); productStart = productEnd = QDateTime();
price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd); price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd);
qCritical() << QString("price (%1-%2) :") qCritical() << QString("line=%1 price (%2-%3) :")
.arg(__LINE__)
.arg(productStart.time().toString(Qt::ISODate)) .arg(productStart.time().toString(Qt::ISODate))
.arg(productEnd.time().toString(Qt::ISODate)) .arg(productEnd.time().toString(Qt::ISODate))
<< price; << price;
@ -97,7 +100,8 @@ int main() {
start.setTime(QTime(15, 0, 0)); start.setTime(QTime(15, 0, 0));
productStart = productEnd = QDateTime(); productStart = productEnd = QDateTime();
price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd); price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd);
qCritical() << QString("price (%1-%2) :") qCritical() << QString("line=%1 price (%2-%3) :")
.arg(__LINE__)
.arg(productStart.time().toString(Qt::ISODate)) .arg(productStart.time().toString(Qt::ISODate))
.arg(productEnd.time().toString(Qt::ISODate)) .arg(productEnd.time().toString(Qt::ISODate))
<< price; << price;
@ -105,7 +109,8 @@ int main() {
start.setTime(QTime(16, 0, 0)); start.setTime(QTime(16, 0, 0));
productStart = productEnd = QDateTime(); productStart = productEnd = QDateTime();
price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd); price = compute_product_price(&cfg, PERMIT_TYPE::DAY_TICKET, start, &productStart, &productEnd);
qCritical() << QString("price (%1-%2) :") qCritical() << QString("line=%1 price (%2-%3) :")
.arg(__LINE__)
.arg(productStart.time().toString(Qt::ISODate)) .arg(productStart.time().toString(Qt::ISODate))
.arg(productEnd.time().toString(Qt::ISODate)) .arg(productEnd.time().toString(Qt::ISODate))
<< price; << price;
@ -113,7 +118,8 @@ int main() {
start.setTime(QTime(17, 0, 0)); start.setTime(QTime(17, 0, 0));
productStart = productEnd = QDateTime(); productStart = productEnd = QDateTime();
price = compute_product_price(&cfg, PERMIT_TYPE::INVALID, start, &productStart, &productEnd); price = compute_product_price(&cfg, PERMIT_TYPE::INVALID, start, &productStart, &productEnd);
qCritical() << QString("price (%1-%2) :") qCritical() << QString("line=%1 price (%2-%3) :")
.arg(__LINE__)
.arg(productStart.time().toString(Qt::ISODate)) .arg(productStart.time().toString(Qt::ISODate))
.arg(productEnd.time().toString(Qt::ISODate)) .arg(productEnd.time().toString(Qt::ISODate))
<< price; << price;