]> www.ginac.de Git - cln.git/blobdiff - tests/exam.cc
[build] Move CLN version info into the include/cln/version.h file...
[cln.git] / tests / exam.cc
index b1a4e7bee3a02027115f3339ed76fa2e6bbf34c7..1b4cfe652f7a4bf07121c0960408364fde2944f7 100644 (file)
@@ -1,6 +1,9 @@
-#include <stdlib.h>
-#include <cl_io.h>
-#include <cl_real.h>
+#include <cstdlib>
+#include <cln/io.h>
+#include <cln/real.h>
+
+using namespace std;
+using namespace cln;
 
 extern int test_integer();
 extern int test_rational();
@@ -8,6 +11,8 @@ extern int test_sfloat();
 extern int test_ffloat();
 extern int test_dfloat();
 extern int test_lfloat();
+extern int test_factorial();
+extern int test_doublefactorial();
 
 int test_elementary (void)
 {
@@ -32,16 +37,18 @@ int test_all (void)
        error |= test_gcd();
        error |= test_xgcd();
        error |= test_sqrtp();
+       error |= test_factorial();
+       error |= test_doublefactorial();
        return error;
 }
 
 int main ()
 {
        if (!test_all()) {
-               fprint (cl_stdout, "Tests passed.\n");
+               cout << "Tests passed." << endl;
                exit(0);
        } else {
-               fprint (cl_stdout, "Tests failed.\n");
+               cout << "Tests failed" << endl;
                exit(1);
        }
 }