X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fexam_polygcd.cpp;h=bc4dfe09168f0a2cdabef0b498bd72543bd227d5;hb=dd19b7316b6eba5c49b6a4fb3503c504ec6c866a;hp=b898368d8e6b7981e0b28d5538e4c40c0dd14307;hpb=6d225ee55693c0617d254e6fa283c00c71bd2919;p=ginac.git diff --git a/check/exam_polygcd.cpp b/check/exam_polygcd.cpp index b898368d..bc4dfe09 100644 --- a/check/exam_polygcd.cpp +++ b/check/exam_polygcd.cpp @@ -4,7 +4,7 @@ * rational function normalization in normalization.cpp. */ /* - * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2009 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 @@ -18,10 +18,14 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * 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; const int MAX_VARIABLES = 3; @@ -231,7 +235,6 @@ unsigned exam_polygcd() unsigned result = 0; cout << "examining polynomial GCD computation" << flush; - clog << "----------polynomial GCD computation:" << endl; result += poly_gcd1(); cout << '.' << flush; result += poly_gcd2(); cout << '.' << flush; @@ -243,12 +246,10 @@ unsigned exam_polygcd() result += poly_gcd6(); cout << '.' << flush; result += poly_gcd7(); 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_polygcd(); +}