X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fcheck_numeric.cpp;h=6c14623f71bd018652b53c7d9622993b74820026;hb=13e428bf205c31f584ce6de03707c880e3486ade;hp=1da48271caaeeab025dd6951bccd8dfe75b0848a;hpb=695f6ae955ec530cded8f21efd5569df39447f76;p=ginac.git diff --git a/check/check_numeric.cpp b/check/check_numeric.cpp index 1da48271..6c14623f 100644 --- a/check/check_numeric.cpp +++ b/check/check_numeric.cpp @@ -1,10 +1,10 @@ /** @file check_numeric.cpp * - * These exams creates some numbers and check the result of several boolean + * These exams creates some numbers and check the result of several Boolean * tests on these numbers like is_integer() etc... */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2015 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,15 @@ * * 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 "checks.h" +#include "ginac.h" +using namespace GiNaC; + +#include // for rand() +#include +using namespace std; /* Simple and maybe somewhat pointless consistency tests of assorted tests and * conversions. */ @@ -110,17 +115,14 @@ unsigned check_numeric() unsigned result = 0; cout << "checking consistency of numeric types" << flush; - clog << "---------consistency of numeric types:" << endl; result += check_numeric1(); cout << '.' << flush; result += check_numeric2(); cout << '.' << flush; - if (!result) { - cout << " passed " << endl; - clog << "(no output)" << endl; - } else { - cout << " failed " << endl; - } - return result; } + +int main(int argc, char** argv) +{ + return check_numeric(); +}