Add test cases for szeged.

This commit is contained in:
Gerhard Hoffmann 2023-12-01 14:25:06 +01:00
parent e97ad17b09
commit a599e47a47

View File

@ -50,12 +50,20 @@ int main() {
if (isParsed) if (isParsed)
{ {
QDateTime start = QDateTime::fromString("2023-11-27T17:50:00",Qt::ISODate); QDateTime start = QDateTime::fromString("2023-12-08T17:50:00",Qt::ISODate);
//QDateTime start = QDateTime::currentDateTime(); //QDateTime start = QDateTime::currentDateTime();
QDateTime end = start.addSecs(120); QDateTime end = start.addSecs(120);
uint32_t cost = calculator.GetCostFromDuration(&cfg, 3, start, end, 60); uint32_t cost = calculator.GetCostFromDuration(&cfg, 3, start, end, 30);
qCritical() << "cost=" << cost; qCritical() << "cost=" << cost;
qCritical() << "end=" << end; qCritical() << "end=" << end;
std::string duration = calculator.GetDurationFromCost(&cfg, 3,
start.toString(Qt::ISODate).toStdString().c_str(),
60);
qCritical() << "duration=" << duration.c_str();
} }
return 0; return 0;