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();
15 int test_elementary (void)
18 error |= test_integer();
19 error |= test_rational();
20 error |= test_sfloat();
21 error |= test_ffloat();
22 error |= test_dfloat();
23 error |= test_lfloat();
27 extern int test_gcd (void);
28 extern int test_xgcd (void);
29 extern int test_sqrtp (void);
34 error |= test_elementary();
37 error |= test_sqrtp();
44 cout << "Tests passed." << endl;
47 cout << "Tests failed" << endl;