X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fcheck_numeric.cpp;h=6c14623f71bd018652b53c7d9622993b74820026;hb=13e428bf205c31f584ce6de03707c880e3486ade;hp=ec1eaf2814e7bfb20d7aeabe4d8cea46023d4c58;hpb=619d77d2676f7f1a562fb9fefc0ba6754fe2d750;p=ginac.git diff --git a/check/check_numeric.cpp b/check/check_numeric.cpp index ec1eaf28..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-2007 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 @@ -21,7 +21,12 @@ * 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(); +}