]> www.ginac.de Git - ginac.git/blobdiff - check/exam_hashmap.cpp
G_numeric: put convergence/acceleration transofrmations into helper functions.
[ginac.git] / check / exam_hashmap.cpp
index 06ea335b1c050942e49ea83814bc70020c46b2ff..1aac8c8c2ee045d2b34aaab9a6246a18d0757b38 100644 (file)
@@ -3,7 +3,7 @@
  *  Regression tests for the exhashmap<> container. */
 
 /*
- *  GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2008 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
  *
  *  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 <iostream>
+#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<unsigned> 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();
+}