]> www.ginac.de Git - ginac.git/blobdiff - check/check_numeric.cpp
check: indicate the test failures with non-zero exit code; split test programs.
[ginac.git] / check / check_numeric.cpp
index ec1eaf2814e7bfb20d7aeabe4d8cea46023d4c58..ce79a27498cad185f85b7c1b02d4ccc91d31ccd4 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "checks.h"
+#include <iostream>
+#include <cstdlib> // rand()
+#include "ginac.h"
+using namespace std;
+using namespace GiNaC;
 
 /* Simple and maybe somewhat pointless consistency tests of assorted tests and
  * conversions. */
@@ -115,12 +119,10 @@ unsigned check_numeric()
        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();
+}