8 extern int test_integer();
9 extern int test_rational();
10 extern int test_sfloat();
11 extern int test_ffloat();
12 extern int test_dfloat();
13 extern int test_lfloat();
14 extern int test_factorial();
15 extern int test_doublefactorial();
17 int test_elementary (void)
20 error |= test_integer();
21 error |= test_rational();
22 error |= test_sfloat();
23 error |= test_ffloat();
24 error |= test_dfloat();
25 error |= test_lfloat();
29 extern int test_gcd (void);
30 extern int test_xgcd (void);
31 extern int test_sqrtp (void);
36 error |= test_elementary();
39 error |= test_sqrtp();
40 error |= test_factorial();
41 error |= test_doublefactorial();
48 cout << "Tests passed." << endl;
51 cout << "Tests failed" << endl;