]> www.ginac.de Git - ginac.git/blobdiff - check/exam_lsolve.cpp
Update copyright statements.
[ginac.git] / check / exam_lsolve.cpp
index 3ed9cc1d91838e852dcca9d2796bece7075e7885..66ba63ec30d1164bd6dc9585efd9696eb5294b5f 100644 (file)
@@ -3,7 +3,7 @@
  *  These exams test solving small linear systems of symbolic equations. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 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 exam_lsolve1()
 {
@@ -188,7 +192,6 @@ unsigned exam_lsolve()
        unsigned result = 0;
        
        cout << "examining linear solve" << flush;
-       clog << "----------linear solve:" << endl;
        
        result += exam_lsolve1();  cout << '.' << flush;
        result += exam_lsolve2a();  cout << '.' << flush;
@@ -197,12 +200,10 @@ unsigned exam_lsolve()
        result += exam_lsolve2S();  cout << '.' << flush;
        result += exam_lsolve3S();  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_lsolve();
+}