#include #include using namespace Upp; CONSOLE_APP_MAIN { StdLogSetup(LOG_FILE|LOG_COUT); String path = GetDataFile("test.in"); PPSync(GetFileFolder(path)); Cpp cpp; FileIn in(path); cpp.Preprocess(path, in, path); String s = cpp.output; String opath = GetDataFile("test.out"); LOG("======================"); LOG(cpp.output); #ifdef flagSAVE SaveFile(opath, s); #else ASSERT(LoadFile(opath) == s); #endif LOG("===================== OK"); }