Add testcases for naz

This commit is contained in:
Gerhard Hoffmann 2023-12-15 13:28:58 +01:00
parent f1f5ac8900
commit 8cf816c158

View File

@ -33,12 +33,32 @@ 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 (0) #define SZEGED (0)
#define NEUHAUSER_KORNEUBURG (0) #define NEUHAUSER_KORNEUBURG (0)
#define NEUHAUSER_LINSINGER_MASCHINENBAU (1) #define NEUHAUSER_LINSINGER_MASCHINENBAU (0)
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1)
int main() { int main() {
#if NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM==1
std::ifstream input("/tmp/tariff_naz.json");
std::stringstream sstr;
while(input >> sstr.rdbuf());
std::string json(sstr.str());
Configuration cfg;
bool isParsed = cfg.ParseJson(&cfg, json.c_str());
cout << endl;
if (isParsed) {
// Calculator calculator;
}
#endif
#if NEUHAUSER_LINSINGER_MASCHINENBAU==1 #if NEUHAUSER_LINSINGER_MASCHINENBAU==1
std::ifstream input("/tmp/tariff_linsinger_maschinenbau.json"); std::ifstream input("/tmp/tariff_linsinger_maschinenbau.json");