test case for fuchs, fane alm.
This commit is contained in:
parent
1023f6ede1
commit
62c52fd580
@ -47,11 +47,11 @@ extern "C" char* strptime(const char* s,
|
|||||||
#define NEUHAUSER_CHRISTOPH_REISEN (0)
|
#define NEUHAUSER_CHRISTOPH_REISEN (0)
|
||||||
#define NEUHAUSER_PERNEGG_AN_DER_MUR (0)
|
#define NEUHAUSER_PERNEGG_AN_DER_MUR (0)
|
||||||
#define NEUHAUSER_STOCKERAU (0)
|
#define NEUHAUSER_STOCKERAU (0)
|
||||||
#define KLEIPEDA_LITAUEN (1)
|
#define KLEIPEDA_LITAUEN (0)
|
||||||
#define SEXTEN (0)
|
#define SEXTEN (0)
|
||||||
#define SCHNALS_LEITER_KIRCHL (0)
|
#define SCHNALS_LEITER_KIRCHL (0)
|
||||||
#define SCHNALS_STAUMAUER (SCHNALS_LEITER_KIRCHL)
|
#define SCHNALS_STAUMAUER (SCHNALS_LEITER_KIRCHL)
|
||||||
#define VALSER_ALM (0)
|
#define VALSER_ALM (1)
|
||||||
|
|
||||||
#if NEUHAUSER_KIRCHDORF==1
|
#if NEUHAUSER_KIRCHDORF==1
|
||||||
static bool test_neuhauser_kirchdorf(int step, double cost) {
|
static bool test_neuhauser_kirchdorf(int step, double cost) {
|
||||||
@ -919,22 +919,24 @@ int main() {
|
|||||||
s.setTime(QTime(12, 0, 0));
|
s.setTime(QTime(12, 0, 0));
|
||||||
|
|
||||||
int minimal_parking_price = get_minimal_parkingprice(&cfg,
|
int minimal_parking_price = get_minimal_parkingprice(&cfg,
|
||||||
PermitType(PERMIT_TYPE::SHORT_TERM_PARKING),
|
PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW),
|
||||||
paymentOptionIndex, s);
|
paymentOptionIndex, s);
|
||||||
|
|
||||||
|
#if 0
|
||||||
qCritical() << "minimal parking price" << minimal_parking_price;
|
qCritical() << "minimal parking price" << minimal_parking_price;
|
||||||
|
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
calcState = compute_duration_for_parking_ticket(&cfg, s,
|
calcState = compute_duration_for_parking_ticket(&cfg, s,
|
||||||
(double)minimal_parking_price + i*800,
|
(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();
|
qCritical() << "RUN" << i << end.toString(Qt::ISODate) << calcState.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
s.setTime(QTime(15, 0, 0));
|
s.setTime(QTime(15, 0, 0));
|
||||||
|
|
||||||
minimal_parking_price = get_minimal_parkingprice(&cfg,
|
minimal_parking_price = get_minimal_parkingprice(&cfg,
|
||||||
PermitType(PERMIT_TYPE::SHORT_TERM_PARKING),
|
PermitType(PERMIT_TYPE::SHORT_TERM_PARKING_PKW),
|
||||||
paymentOptionIndex, s);
|
paymentOptionIndex, s);
|
||||||
|
|
||||||
qCritical() << "minimal parking price" << minimal_parking_price;
|
qCritical() << "minimal parking price" << minimal_parking_price;
|
||||||
@ -942,9 +944,10 @@ int main() {
|
|||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
calcState = compute_duration_for_parking_ticket(&cfg, s,
|
calcState = compute_duration_for_parking_ticket(&cfg, s,
|
||||||
(double)minimal_parking_price + i*800,
|
(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();
|
qCritical() << "RUN" << i << end.toString(Qt::ISODate) << calcState.toString();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user