]> www.ginac.de Git - ginac.git/blobdiff - check/exam_color.cpp
Update copyright statements.
[ginac.git] / check / exam_color.cpp
index f2342a39f22582495f7cea586775fb1f02c04708..5afe0441ef82f7328ebe902efb0ffae1dc462955 100644 (file)
@@ -3,7 +3,7 @@
  *  Here we test GiNaC's color objects (su(3) Lie algebra). */
 
 /*
- *  GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2014 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
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "exams.h"
+#include "ginac.h"
+using namespace GiNaC;
+
+#include <iostream>
+using namespace std;
 
 static unsigned check_equal(const ex &e1, const ex &e2)
 {
@@ -145,18 +149,15 @@ unsigned exam_color()
        unsigned result = 0;
        
        cout << "examining color objects" << flush;
-       clog << "----------color objects:" << endl;
 
        result += color_check1();  cout << '.' << flush;
        result += color_check2();  cout << '.' << flush;
        result += color_check3();  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_color();
+}