#include #include #include "JSystem/JGlob.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * Test program for JGlob. */ int main(int argc, char **argv) { using namespace std; using namespace JPP; int debug; try { JParser<> zap("Test program for JGlob."); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } try { JGlob g1(argv[0]); DEBUG(argv[0] << endl); ASSERT(g1.size() == 1u); ASSERT(g1[0] == argv[0]); } catch(const exception& error) { FATAL(error.what() << endl); } return 0; }