X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_structure.cpp;h=57f5f39fc6e975a68c944cad16858dda24394607;hp=84de56babb267d73048d9fd9c4f09c908092edfa;hb=a1232ef3c23d3af7673c96ec4f0e0c652054564a;hpb=619d77d2676f7f1a562fb9fefc0ba6754fe2d750 diff --git a/check/exam_structure.cpp b/check/exam_structure.cpp index 84de56ba..57f5f39f 100644 --- a/check/exam_structure.cpp +++ b/check/exam_structure.cpp @@ -3,7 +3,7 @@ * Small test for the structure<> template. */ /* - * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2014 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,8 +20,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "exams.h" +#include "ginac.h" +using namespace GiNaC; +#include +using namespace std; struct sprod_s { ex left, right; @@ -72,7 +75,6 @@ unsigned exam_structure() unsigned result = 0; cout << "examining structure template" << flush; - clog << "----------structure template:" << endl; symbol x("x"), y("y"); ex e; @@ -91,14 +93,10 @@ unsigned exam_structure() ++result; } - cout << '.' << flush; - - if (!result) { - cout << " passed " << endl; - clog << "(no output)" << endl; - } else { - cout << " failed " << endl; - } - return result; } + +int main(int argc, char** argv) +{ + return exam_structure(); +}