]> www.ginac.de Git - cln.git/blobdiff - tests/exam.cc
Fix yet another dependent base C++ language issue.
[cln.git] / tests / exam.cc
index b1a4e7bee3a02027115f3339ed76fa2e6bbf34c7..ca1be027e80d7ca8096ff122ba0ae3eb91067989 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();
@@ -38,10 +41,10 @@ int test_all (void)
 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);
        }
 }