Add testcases for naz
This commit is contained in:
parent
f1f5ac8900
commit
8cf816c158
@ -33,12 +33,32 @@ extern "C" char* strptime(const char* s,
|
||||
#include "calculator_functions.h"
|
||||
#include <calculate_price.h>
|
||||
|
||||
#define SZEGED (0)
|
||||
#define NEUHAUSER_KORNEUBURG (0)
|
||||
#define NEUHAUSER_LINSINGER_MASCHINENBAU (1)
|
||||
#define SZEGED (0)
|
||||
#define NEUHAUSER_KORNEUBURG (0)
|
||||
#define NEUHAUSER_LINSINGER_MASCHINENBAU (0)
|
||||
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1)
|
||||
|
||||
|
||||
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
|
||||
std::ifstream input("/tmp/tariff_linsinger_maschinenbau.json");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user