-#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();
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);
}
}