X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fexam_hashmap.cpp;h=289c2264af94759424b9dd9b8b7bbf979146c15a;hb=c3c748381bda4f81b68e50db2eed440c19f24b85;hp=93faa81ea407236ba977b9507d5b20a834ab5fc8;hpb=da64e515abf7243bc4c84ca3631470931c4e6691;p=ginac.git diff --git a/check/exam_hashmap.cpp b/check/exam_hashmap.cpp index 93faa81e..289c2264 100644 --- a/check/exam_hashmap.cpp +++ b/check/exam_hashmap.cpp @@ -3,7 +3,7 @@ * Regression tests for the exhashmap<> container. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2007 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,7 +20,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "exams.h" +#include +#include "ginac.h" +using namespace std; +using namespace GiNaC; unsigned exam_hashmap() { @@ -28,7 +31,6 @@ unsigned exam_hashmap() unsigned N = 100; cout << "examining hash maps" << flush; - clog << "----------hash maps:" << endl; // Create empty container exhashmap M1; @@ -279,15 +281,12 @@ unsigned exam_hashmap() clog << "count(4*x^y) returns " << n << " instead of 1" << endl; ++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_hashmap(); +}