5 int main(
int argc,
char** argv) {
7 if (argc > 1) numTest = atoi(argv[1]);
15 for (
int i = 0; i < numTest; ++i) {
17 interp.
python(
"print('I am the interpreter')", result, out, err);
18 assert(out.compare(
"I am the interpreter"));
19 assert(err.length() == 0);
21 interp.
python(
"print I am the interpreter", result, out, err);
22 assert(result.length() == 0);
23 assert(out.length() == 0);
24 assert(err.length() > 50);
std::string python(const std::string &command)
Method to start python interperter.
int main(int argc, char **argv)