test for naz
This commit is contained in:
parent
f46adac56d
commit
f450d85bff
@ -33,11 +33,11 @@ extern "C" char* strptime(const char* s,
|
|||||||
#include "calculator_functions.h"
|
#include "calculator_functions.h"
|
||||||
#include "calculate_price.h"
|
#include "calculate_price.h"
|
||||||
|
|
||||||
#define SZEGED (1)
|
#define SZEGED (0)
|
||||||
#define SCHOENAU_KOENIGSEE (0)
|
#define SCHOENAU_KOENIGSEE (0)
|
||||||
#define NEUHAUSER_KORNEUBURG (0)
|
#define NEUHAUSER_KORNEUBURG (0)
|
||||||
#define NEUHAUSER_LINSINGER_MASCHINENBAU (0)
|
#define NEUHAUSER_LINSINGER_MASCHINENBAU (0)
|
||||||
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (0)
|
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1)
|
||||||
#define NEUHAUSER_BILEXA_GALTUER (0)
|
#define NEUHAUSER_BILEXA_GALTUER (0)
|
||||||
|
|
||||||
|
|
||||||
@ -133,6 +133,24 @@ int main() {
|
|||||||
cout << endl;
|
cout << endl;
|
||||||
|
|
||||||
if (isParsed) {
|
if (isParsed) {
|
||||||
|
QDateTime s(QDate(2023, 11, 30), QTime());
|
||||||
|
QDateTime end;
|
||||||
|
struct price_t price;
|
||||||
|
memset(&price, 0, sizeof(struct price_t));
|
||||||
|
for (int offset = 480; offset < 1080; ++offset) {
|
||||||
|
QDateTime start = s.addSecs(offset * 60);
|
||||||
|
CalcState cs = compute_price_for_daily_ticket(&cfg, start, end,
|
||||||
|
PERMIT_TYPE::DAY_TICKET_ADULT, &price);
|
||||||
|
qCritical() << "start=" << start.toString(Qt::ISODate)
|
||||||
|
<< "end" << end.toString(Qt::ISODate) << "price" << price.netto;
|
||||||
|
}
|
||||||
|
for (int offset = 480; offset < 1080; ++offset) {
|
||||||
|
QDateTime start = s.addSecs(offset * 60);
|
||||||
|
CalcState cs = compute_price_for_daily_ticket(&cfg, start, end,
|
||||||
|
PERMIT_TYPE::DAY_TICKET_TEEN, &price);
|
||||||
|
qCritical() << "start=" << start.toString(Qt::ISODate)
|
||||||
|
<< "end" << end.toString(Qt::ISODate) << "price" << price.netto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user