revised tests for Neuhauser/Linsinger Maschinenbau (744)
This commit is contained in:
parent
a744a1ebb3
commit
4f45db4fde
@ -37,8 +37,8 @@ extern "C" char* strptime(const char* s,
|
|||||||
#define SZEGED (0)
|
#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 (1)
|
||||||
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1)
|
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (0)
|
||||||
#define NEUHAUSER_BILEXA_GALTUER (0)
|
#define NEUHAUSER_BILEXA_GALTUER (0)
|
||||||
#define NEUHAUSER_KIRCHDORF (0)
|
#define NEUHAUSER_KIRCHDORF (0)
|
||||||
|
|
||||||
@ -639,38 +639,8 @@ int main() {
|
|||||||
cout << endl;
|
cout << endl;
|
||||||
|
|
||||||
if (isParsed) {
|
if (isParsed) {
|
||||||
bool nextDay = false;
|
int const price = compute_product_price(&cfg, PERMIT_TYPE::FOOD_STAMP);
|
||||||
bool prePaid = false;
|
qCritical() << "price food stamp" << price;
|
||||||
|
|
||||||
// zone 1 (lila)
|
|
||||||
QDateTime s(QDate(2023, 11, 30), QTime());
|
|
||||||
QDateTime end;
|
|
||||||
int marken[] = { 3*60, 5*60, 10*60};
|
|
||||||
for (int duration = 0; duration < 3; ++duration) {
|
|
||||||
for (int offset = 360; offset <= 360; ++offset) {
|
|
||||||
// for (int offset = 360; offset < 1080; ++offset) {
|
|
||||||
QDateTime start = s.addSecs(offset * 60);
|
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate);
|
|
||||||
|
|
||||||
// note: prepaid == false (!)
|
|
||||||
// double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 4, start, end, marken[duration], nextDay, prePaid);
|
|
||||||
|
|
||||||
struct price_t price;
|
|
||||||
if (compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price, prePaid)) {
|
|
||||||
double cost = price.netto;
|
|
||||||
|
|
||||||
qCritical() << "start" << start.toString(Qt::ISODate)
|
|
||||||
<< "end" << end.toString(Qt::ISODate)
|
|
||||||
<< "duration" << marken[duration]
|
|
||||||
<< "cost" << cost;
|
|
||||||
}
|
|
||||||
|
|
||||||
//std::string d = Calculator::GetInstance().GetDurationFromCost(&cfg, 4, start.toString(Qt::ISODate).toStdString().c_str(), cost);
|
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate)
|
|
||||||
// << "cost" << cost
|
|
||||||
// << "until" << d.c_str() << start.secsTo(QDateTime::fromString(d.c_str(), Qt::ISODate)) / 60;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user