3af559f0e346093b85eaf5d28dbf574977f125be
[ipdf/code.git] / src / tests / arbrationals.cpp
1 /**
2  * @file arbrationals.cpp
3  * @brief Tests Rational<Arbint>
4  */
5  
6 #include "rational.h"
7 #include "arbint.h"
8
9 #define TEST_CASES 100
10
11 using namespace std;
12 using namespace IPDF;
13
14 int main(int argc, char ** argv)
15 {
16         for (unsigned i = 0; i < TEST_CASES; ++i)
17         {
18                 Debug("Cycle %u",i);
19                 Arbint p1 = 1L;//rand();
20                 Arbint q1 = 2L;//rand();
21                 Arbint p2 = rand();
22                 Arbint q2 = rand();
23                 Debug("Construct rationals");
24                 Rational<Arbint> a(p1, q1);
25                 Debug("Constructed a %u\n",i);
26                 Rational<Arbint> b(p2, q2);
27                 Debug("Constructed b %u\n",i);
28                 
29                 
30         }
31         printf("Tests done");
32 }

UCC git Repository :: git.ucc.asn.au