-#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();
extern int test_ffloat();
extern int test_dfloat();
extern int test_lfloat();
+extern int test_factorial();
+extern int test_doublefactorial();
int test_elementary (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);
}
}